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 default-features = false somewhere in the dependency tree.

std

Enables std of aead

alloc default seal?

Enables alloc of aead

chacha20

Enables chacha20 of crypto_secretbox and chacha20

optional dependencies

Affects crypto_box::ChaChaBox

getrandom default = rand_core

Enables getrandom of aead

heapless

Enables heapless of aead

rand_core getrandom

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