Cargo Features
[dependencies]
chacha20 = { version = "0.10.0-pre.2", default-features = false, features = ["std", "legacy", "rng", "serde1", "xchacha", "zeroize"] }
- default = cipher
-
The
cipher
feature is set by default wheneverchacha20
is added without
somewhere in the dependency tree.default-features = false - std
- legacy = cipher
-
Affects
variants::Legacy
… - rng = rand_core
- serde1 = serde
- 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.