Cargo Features
[dependencies]
clap-serde = { version = "0.5.1", default-features = false, features = ["env", "kebab-case-key", "snake-case-key", "yaml", "color", "allow-deprecated", "override-arg", "docsrs"] }
- default = allow-deprecated, snake-case-key
-
These default features are set whenever
clap-serde
is added without
somewhere in the dependency tree.default-features = false - env docsrs?
-
Enables env of clap ^3.2.16
clap:
Use environment variables during arg parsing
- pascal-case-key kebab-case-key = convert_case
- snake-case-key default docsrs?
- yaml docsrs? = yaml-rust
- color docsrs?
-
Enables color of clap ^3.2.16
- allow-deprecated default
- override-arg
- docsrs = color, env, snake-case-key, yaml
-
Affects
clap-serde::documents
…
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.