Cargo Features
[dependencies]
outlog = { version = "0.1.0", default-features = false, features = ["all", "color", "panic", "config-serde"] }
- default = color
-
The
color
feature is set by default wheneveroutlog
is added without
somewhere in the dependency tree.default-features = false - all = chrono, color, config-serde, panic
- color default all? = atty
-
Affects
config::Config.color
,config::Color
… - panic all?
- config-serde all? = serde
-
It is currently impossible to name this feature 'serde' without significant workarounds. When namespaced-features goes stable, this will be fixed. Keep an eye on https://github.com/rust-lang/cargo/issues/5565
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.