Cargo Features
Log has no features set by default.
[dependencies]
log = { version = "0.4.22", features = ["std", "max_level_warn", "max_level_trace", "release_max_level_error", "release_max_level_info", "release_max_level_trace", "kv", "kv_sval", "kv_std", "kv_serde", "kv_unstable", "kv_unstable_sval", "kv_unstable_std", "kv_unstable_serde"] }
- std kv_std?
-
Affects
log::set_boxed_logger
… - 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
- kv kv_std? kv_sval? kv_unstable?
-
Affects
log::kv
… - kv_sval kv_unstable_sval? = kv, sval, sval_ref
-
value-bag:
Add support for
sval
- kv_std kv_serde? kv_unstable_std? = kv, std
-
value-bag:
Add support for
std::error
Affects
value::VisitValue.visit_error
,value::VisitValue.visit_borrowed_error
… - kv_serde kv_unstable_serde? = kv_std, serde
-
value-bag:
Add support for
serde
- kv_unstable kv_unstable_std? kv_unstable_sval? = kv, value-bag
-
Deprecated: use
kv_*
instead These*_unstable
features will be removed in a future releaseAffects
kv::source
,kv::value
… - kv_unstable_sval = kv_sval, kv_unstable
- kv_unstable_std kv_unstable_serde? = kv_std, kv_unstable
- kv_unstable_serde = kv_serde, kv_unstable_std
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.