Cargo Features
[dependencies]
env_logger_successor = { version = "0.9.1", default-features = false, features = ["localtime", "regex", "termcolor", "humantime", "atty"] }
By default, all features are disabled unless explicitly enabled.
This can be changed by specifying the default feature.
When the package is built,
the default feature is enabled which in turn enables the listed features.
- default = atty, humantime, regex, termcolor
-
These default features are set whenever
env_logger_successor
is added without
somewhere in the dependency tree.default-features = false - localtime = chrono
-
local time feature.this feature will override humantime if both of them are enabled.
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.