1[package]
2
3name = "log"
4version = "0.4.21" # remember to update html_root_url
5authors = ["The Rust Project Developers"]
6license = "MIT OR Apache-2.0"
7readme = "README.md"
8repository = "https://github.com/rust-lang/log"
9documentation = "https://docs.rs/log"
10description = """
11A lightweight logging facade for Rust
12"""
13categories = ["development-tools::debugging"]
14keywords = ["logging"]
15exclude = ["rfcs/**/*"]
16rust-version = "1.60.0"
17edition = "2021"
18
19[package.metadata.docs.rs]
20features = ["std", "serde", "kv_std", "kv_sval", "kv_serde"]
21
22[[test]]
23name = "filters"
24path = "tests/filters.rs"
25harness = false
26
27[[test]]
28name = "macros"
29path = "tests/macros.rs"
30harness = true
31
32[features]
33max_level_off = []
34max_level_error = []
35max_level_warn = []
36max_level_info = []
37max_level_debug = []
38max_level_trace = []
39
40release_max_level_off = []
41release_max_level_error = []
42release_max_level_warn = []
43release_max_level_info = []
44release_max_level_debug = []
45release_max_level_trace = []
46
47std = []
48
49kv = []
50kv_sval = ["kv", "value-bag/sval", "sval", "sval_ref"]
51kv_std = ["std", "kv", "value-bag/error"]
52kv_serde = ["kv_std", "value-bag/serde", "serde"]
53
54# Deprecated: use `kv_*` instead
55# These `*_unstable` features will be removed in a future release
56kv_unstable = ["kv", "value-bag"]
57kv_unstable_sval = ["kv_sval", "kv_unstable"]
58kv_unstable_std = ["kv_std", "kv_unstable"]
59kv_unstable_serde = ["kv_serde", "kv_unstable_std"]
60
61[dependencies]
62serde = { version = "1.0", optional = true, default-features = false }
63sval = { version = "2.1", optional = true, default-features = false }
64sval_ref = { version = "2.1", optional = true, default-features = false }
65value-bag = { version = "1.7", optional = true, default-features = false, features = ["inline-i128"] }
66
67[dev-dependencies]
68serde = { version = "1.0", features = ["derive"] }
69serde_json = "1.0"
70serde_test = "1.0"
71sval = { version = "2.1" }
72sval_derive = { version = "2.1" }
73value-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.
81proc-macro2 = { version = "1.0.63", default-features = false }
82