Cargo Features
[dependencies]
config-file2 = { version = "0.4.0", default-features = false, features = ["all", "json", "toml", "xml", "yaml", "ron"] }
- default all? = toml
-
The
toml
feature is set by default wheneverconfig-file2
is added without
somewhere in the dependency tree.default-features = false - all = default, json, ron, toml, xml, yaml
- json all? = serde_json
- toml default all? = toml_crate
-
Affects
error::TomlError
… - xml all? = quick-xml
-
Affects
error::XmlError
… - yaml all? = serde_yml
- ron all? = ron_crate
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.