Cargo Features
[dependencies]
configit = { version = "0.3.1", default-features = false, features = ["toml_conf", "yaml_conf"] }
- default = toml_conf
-
The
toml_conf
feature is set by default wheneverconfigit
is added without
somewhere in the dependency tree.default-features = false - toml_conf default = toml
- yaml_conf = serde_yaml
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.
- serde_yaml yaml_conf?
-
Enables serde_yaml ^0.8
- toml toml_conf
-
Enables toml ^0.5