Cargo Features
[dependencies]
shadow-rs = { version = "1.4.0", default-features = false, features = ["no_std", "std", "metadata", "build", "git2", "document-features"] }
- default = build, git2, tzdb
-
These default features are set whenever
shadow-rsis added withoutsomewhere in the dependency tree.default-features = false - no_std
- std build
- metadata = cargo_metadata, serde_json
- build default = std, time, tzdb
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.
- time build
- git2 default
-
Enables git2
Optional Dependencies:
Use
libgit2as a backend for git operationsAffects
git::git2_mod… - tzdb default build
-
Enables tzdb
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.22.0
- serde_json metadata?