1 | [package] |
2 | |
3 | name = "log" |
4 | version = "0.4.21" # remember to update html_root_url |
5 | authors = ["The Rust Project Developers" ] |
6 | license = "MIT OR Apache-2.0" |
7 | readme = "README.md" |
8 | repository = "https://github.com/rust-lang/log" |
9 | documentation = "https://docs.rs/log" |
10 | description = "" " |
11 | A lightweight logging facade for Rust |
12 | " "" |
13 | categories = ["development-tools::debugging" ] |
14 | keywords = ["logging" ] |
15 | exclude = ["rfcs/**/*" ] |
16 | rust-version = "1.60.0" |
17 | edition = "2021" |
18 | |
19 | [package.metadata.docs.rs] |
20 | features = ["std" , "serde" , "kv_std" , "kv_sval" , "kv_serde" ] |
21 | |
22 | [[test]] |
23 | name = "filters" |
24 | path = "tests/filters.rs" |
25 | harness = false |
26 | |
27 | [[test]] |
28 | name = "macros" |
29 | path = "tests/macros.rs" |
30 | harness = true |
31 | |
32 | [features] |
33 | max_level_off = [] |
34 | max_level_error = [] |
35 | max_level_warn = [] |
36 | max_level_info = [] |
37 | max_level_debug = [] |
38 | max_level_trace = [] |
39 | |
40 | release_max_level_off = [] |
41 | release_max_level_error = [] |
42 | release_max_level_warn = [] |
43 | release_max_level_info = [] |
44 | release_max_level_debug = [] |
45 | release_max_level_trace = [] |
46 | |
47 | std = [] |
48 | |
49 | kv = [] |
50 | kv_sval = ["kv" , "value-bag/sval" , "sval" , "sval_ref" ] |
51 | kv_std = ["std" , "kv" , "value-bag/error" ] |
52 | kv_serde = ["kv_std" , "value-bag/serde" , "serde" ] |
53 | |
54 | # Deprecated: use `kv_*` instead |
55 | # These `*_unstable` features will be removed in a future release |
56 | kv_unstable = ["kv" , "value-bag" ] |
57 | kv_unstable_sval = ["kv_sval" , "kv_unstable" ] |
58 | kv_unstable_std = ["kv_std" , "kv_unstable" ] |
59 | kv_unstable_serde = ["kv_serde" , "kv_unstable_std" ] |
60 | |
61 | [dependencies] |
62 | serde = { version = "1.0" , optional = true, default-features = false } |
63 | sval = { version = "2.1" , optional = true, default-features = false } |
64 | sval_ref = { version = "2.1" , optional = true, default-features = false } |
65 | value-bag = { version = "1.7" , optional = true, default-features = false, features = ["inline-i128" ] } |
66 | |
67 | [dev-dependencies] |
68 | serde = { version = "1.0" , features = ["derive" ] } |
69 | serde_json = "1.0" |
70 | serde_test = "1.0" |
71 | sval = { version = "2.1" } |
72 | sval_derive = { version = "2.1" } |
73 | value-bag = { version = "1.7" , features = ["test" ] } |
74 | |
75 | # NOTE: log doesn't actually depent on this crate. However our dependencies, |
76 | # serde and sval, dependent on version 1.0 of the crate, which has problem fixed |
77 | # in 1.0.60, specifically in the following commit |
78 | # https://github.com/dtolnay/proc-macro2/commit/e31d61910049e097afdd3d27c37786309082bdcb. |
79 | # By defining the crate as direct dependency we can increase it's minimal |
80 | # version making the minimal (crate) version CI happy. |
81 | proc-macro2 = { version = "1.0.63" , default-features = false } |
82 | |