Cargo Features
[dependencies]
serde_any = { version = "0.5.0", default-features = false, features = ["json", "yaml", "xml", "url", "toml", "ron"] }
- default = json, ron, toml, url, xml, yaml
-
These default features are set whenever
serde_any
is added without
somewhere in the dependency tree.default-features = false - json default = serde_json
- yaml default = serde_yaml
- xml default = serde-xml-any
- url default = serde_urlencoded
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.
- toml default
-
Enables toml ^0.4
- serde_json json
- serde_yaml yaml
-
Enables serde_yaml ^0.7
- ron default
-
Enables ron ^0.3
- serde-xml-any xml
- serde_urlencoded url
-
Enables serde_urlencoded ^0.5.2