Cargo Features
[dependencies]
chacha20 = { version = "0.10.0", default-features = false, features = ["legacy", "rng", "xchacha", "zeroize"] }
- default = cipher
-
The
cipherfeature is set by default wheneverchacha20is added withoutsomewhere in the dependency tree.default-features = false - legacy = cipher
-
Affects
variants::Legacy… - rng
-
Enables rand_core
Affects
variants::Legacy… - xchacha = cipher
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.