Cargo Features

aead = { version = "0.5.2", default-features = false, features = ["std", "alloc", "dev", "getrandom", "rand_core", "stream", "arrayvec", "bytes", "heapless"] }
default = rand_core

The rand_core feature is set by default whenever aead is added without default-features = false somewhere in the dependency tree.

std = alloc

Enables std of crypto-common

alloc std?

Affects aead::Aead, aead::AeadMut, aead::Payload, stream::StreamPrimitive.encrypt, stream::StreamPrimitive.decrypt

dev = blobby

Affects aead::dev

getrandom = rand_core

Enables getrandom of crypto-common

rand_core default getrandom?

Enables rand_core of crypto-common

Affects aead::AeadCore.generate_nonce


Affects aead::stream

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

arrayvec implicit feature

Enables arrayvec

optional dependencies

blobby dev?
bytes implicit feature

Enables bytes


Types and traits for working with bytes

heapless implicit feature

Enables heapless ^0.7


static friendly data structures that don't require dynamic memory allocation