Cargo Features

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 whenever console-subscriber is added without default-features = false somewhere in the dependency tree.

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.

parking_lot_crate parking_lot?

Enables parking_lot

The parking_lot dependency is renamed, because we want our parking_lot feature to also enable tracing-subscriber's parking_lot feature flag.