Cargo Features
[dependencies]
bobr = { version = "0.2.2", default-features = false, features = ["format+json", "format+yaml", "format+toml"] }
- default = format+json
-
The
format+json
feature is set by default wheneverbobr
is added without
somewhere in the dependency tree.default-features = false - format+json default = serde_json
- format+yaml = serde_yml
- format+toml = toml
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.