Cargo Features
[dependencies]
crypto_box = { version = "0.9.1", default-features = false, features = ["std", "alloc", "chacha20", "getrandom", "heapless", "rand_core", "salsa20", "seal", "serde"] }
- default = alloc, getrandom, salsa20
-
These default features are set whenever
crypto_box
is added without
somewhere in the dependency tree.default-features = false - std
- alloc default seal?
- chacha20
-
Enables chacha20 of crypto_secretbox and chacha20
optional dependencies
Affects
crypto_box::ChaChaBox
… - getrandom default = rand_core
- heapless
- rand_core getrandom
- salsa20 default
-
Enables salsa20, salsa20 of crypto_secretbox
Affects
crypto_box::SalsaBox
… - seal = alloc
-
Enables blake2
Affects
crypto_box::SEALBYTES
… - serde
-
Enables serdect