Cargo Features
[dependencies]
universal-config = { version = "0.5.0", default-features = false, features = ["json", "yaml", "corn", "xml", "toml", "ron"] }
- default = corn, json, ron, toml, xml, yaml
-
These default features are set whenever
universal-config
is added without
somewhere in the dependency tree.default-features = false - json default = serde_json
-
aliases
toml does not need to be explicitly included as the dep provides a feature - yaml default = serde_yaml
- corn default = libcorn
- xml default = serde-xml-rs
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
-
Enables serde_json
optional
- serde_yaml yaml
- toml default
- libcorn corn
-
Enables libcorn ^0.9.2
- serde-xml-rs xml
- ron default