Cargo Features

[dependencies]
crypto_box = { version = "0.10.0-pre.0", default-features = false, features = ["std", "alloc", "os_rng", "chacha20", "heapless", "rand_core", "salsa20", "seal", "serde"] }
default = alloc, os_rng, rand_core, salsa20

These default features are set whenever crypto_box is added without default-features = false somewhere in the dependency tree.

std = alloc
alloc default seal? std?

Enables alloc of aead

os_rng default

Enables os_rng of aead

chacha20

Enables chacha20 of crypto_secretbox and chacha20

optional dependencies

Affects crypto_box::ChaChaBox

heapless

Enables heapless of aead

rand_core default

Enables rand_core of aead

salsa20 default

Enables salsa20, salsa20 of crypto_secretbox

Affects crypto_box::SalsaBox

seal = alloc

Enables blake2

Affects crypto_box::SEALBYTES

serde

Enables serdect