mirror of
https://gitee.com/openharmony/third_party_rust_log
synced 2024-11-27 01:40:27 +00:00
67 lines
1.8 KiB
TOML
67 lines
1.8 KiB
TOML
[package]
|
|
|
|
name = "log"
|
|
version = "0.4.14" # remember to update html_root_url
|
|
authors = ["The Rust Project Developers"]
|
|
license = "MIT OR Apache-2.0"
|
|
readme = "README.md"
|
|
repository = "https://github.com/rust-lang/log"
|
|
documentation = "https://docs.rs/log"
|
|
description = """
|
|
A lightweight logging facade for Rust
|
|
"""
|
|
categories = ["development-tools::debugging"]
|
|
keywords = ["logging"]
|
|
exclude = ["rfcs/**/*", "/.travis.yml", "/appveyor.yml"]
|
|
build = "build.rs"
|
|
|
|
[package.metadata.docs.rs]
|
|
features = ["std", "serde", "kv_unstable_std", "kv_unstable_sval", "kv_unstable_serde"]
|
|
|
|
[[test]]
|
|
name = "filters"
|
|
path = "tests/filters.rs"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "macros"
|
|
path = "tests/macros.rs"
|
|
harness = true
|
|
|
|
[features]
|
|
max_level_off = []
|
|
max_level_error = []
|
|
max_level_warn = []
|
|
max_level_info = []
|
|
max_level_debug = []
|
|
max_level_trace = []
|
|
|
|
release_max_level_off = []
|
|
release_max_level_error = []
|
|
release_max_level_warn = []
|
|
release_max_level_info = []
|
|
release_max_level_debug = []
|
|
release_max_level_trace = []
|
|
|
|
std = []
|
|
|
|
# requires the latest stable
|
|
# this will have a tighter MSRV before stabilization
|
|
kv_unstable = ["value-bag"]
|
|
kv_unstable_sval = ["kv_unstable", "value-bag/sval", "sval"]
|
|
kv_unstable_std = ["std", "kv_unstable", "value-bag/error"]
|
|
kv_unstable_serde = ["kv_unstable_std", "value-bag/serde", "serde"]
|
|
|
|
[dependencies]
|
|
cfg-if = "1.0"
|
|
serde = { version = "1.0", optional = true, default-features = false }
|
|
sval = { version = "=1.0.0-alpha.5", optional = true, default-features = false }
|
|
value-bag = { version = "=1.0.0-alpha.8", optional = true, default-features = false }
|
|
|
|
[dev-dependencies]
|
|
rustversion = "1.0"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_test = "1.0"
|
|
sval = { version = "=1.0.0-alpha.5", features = ["derive"] }
|
|
value-bag = { version = "=1.0.0-alpha.8", features = ["test"] }
|