Cargo Features
[dependencies]
crypto_secretbox = { version = "0.1.1", default-features = false, features = ["std", "alloc", "getrandom", "heapless", "rand_core", "stream", "chacha20", "salsa20"] }
- default = alloc, getrandom, salsa20
-
These default features are set whenever
crypto_secretbox
is added without
somewhere in the dependency tree.default-features = false - std = alloc
- alloc default std?
- getrandom default = rand_core
- heapless
- rand_core getrandom
- stream
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.