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

std = alloc

Enables std of aead

alloc default std?

Enables alloc of aead

getrandom default = rand_core

Enables getrandom of aead

heapless

Enables heapless of aead

rand_core getrandom

Enables rand_core of aead

stream

Enables stream of aead

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.

chacha20 implicit feature

Enables chacha20

optional dependencies

Affects crypto_secretbox::XChaCha20Poly1305

salsa20 default

Affects crypto_secretbox::XSalsa20Poly1305