Cargo Features
[dependencies]
config-file2 = { version = "0.3.2", 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
- 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.
- serde_json json?
- serde_yml yaml?
-
Enables serde_yml ^0.0.11
- toml_crate toml
-
Enables toml
- quick-xml xml?
-
Enables quick-xml ^0.36.0
- ron_crate ron?
-
Enables ron