Cargo Features
[dependencies]
devscripts = { version = "0.1.0-alpha.2", default-features = false, features = ["application", "docsrs", "serde"] }
- default = application
-
The
application
feature is set by default wheneverdevscripts
is added without
somewhere in the dependency tree.default-features = false - application default = anyhow, clap, git-version, serde
-
Should be disabled when depending on devscripts as a library (no-default-features = true).
Required by the dev binary
- docsrs
-
Used for builds on docs.rs to enable #![features(doc_auto_cfg)] (internal)
- serde application
-
Enable implementations of serde traits on certain types.
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.