Cargo Features
[dependencies]
runtime_cfg = { version = "0.1.0", default-features = false, features = ["std", "all", "parsing", "printing"] }
- default = all
-
The
all
feature is set by default wheneverruntime_cfg
is added without
somewhere in the dependency tree.default-features = false - std all parsing?
- all default = parsing, printing, std
- parsing all = proc-macro2, std, syn
- printing all
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.
- syn parsing?
-
Enables syn ^0.15
- proc-macro2 parsing?
-
Enables proc-macro2 ^0.4