Cargo Features
[dependencies]
shadow-rs = { version = "0.37.0", default-features = false, features = ["metadata", "git2", "tzdb", "document-features"] }
- default = git2, tzdb
-
These default features are set whenever
shadow-rs
is added without
somewhere in the dependency tree.default-features = false - metadata = cargo_metadata, serde_json
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.
- git2 default
-
Enables git2
Optional Dependencies:
Use
libgit2
as a backend for git operationsAffects
git::git2_mod
… - tzdb default
-
Enables tzdb ^0.6.0
Better support for querying the local system time
- document-features implicit feature
-
Enables document-features
document-features:
Extract documentation for the feature flags from comments in Cargo.toml
- cargo_metadata metadata?
-
Enables cargo_metadata ^0.18.1
- serde_json metadata?