Cargo Features
[dependencies]
sp-tracing = { version = "17.0.1", default-features = false, features = ["std", "with-tracing"] }
- default = std
-
The
std
feature is set by default wheneversp-tracing
is added without
somewhere in the dependency tree.default-features = false - std default = tracing-subscriber, with-tracing
-
Enables std of parity-scale-codec, tracing, and tracing-core
Affects
sp-tracing::try_init_simple
,sp-tracing::init_for_tests
… - with-tracing std
-
Enables full of parity-scale-codec
parity-scale-codec:
This does not do anthing anymore. Remove with the next major release.
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.