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 whenever chacha20 is added without default-features = false somewhere in the dependency tree.

std

Enables std of cipher

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.

cipher default legacy? std? xchacha?
rand_core rng?
serde serde1?
zeroize implicit feature