Cargo Features
[dependencies]
console-subscriber = { version = "0.2.0", default-features = false, features = ["parking_lot", "env-filter"] }
- default = env-filter
-
The
env-filter
feature is set by default wheneverconsole-subscriber
is added without
somewhere in the dependency tree.default-features = false - parking_lot = parking_lot_crate
-
Enables parking_lot of tracing-subscriber
- env-filter default
-
Enables env-filter of tracing-subscriber
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.
- parking_lot_crate parking_lot?
-
Enables parking_lot
The parking_lot dependency is renamed, because we want our
parking_lot
feature to also enabletracing-subscriber
's parking_lot feature flag.