Cargo Features

[dependencies]
clatter = { version = "1.0.0", default-features = false, features = ["std", "alloc", "use-sha", "use-blake2", "use-aes-gcm", "use-chacha20poly1305", "use-pqclean-kyber", "use-rust-crypto-kyber", "use-25519"] }
default = use-25519, use-aes-gcm, use-blake2, use-chacha20poly1305, use-pqclean-kyber, use-rust-crypto-kyber, use-sha

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

std = alloc

Enables std of aes-gcm, blake2, chacha20poly1305, ml-kem, sha2, and zeroize

aes-gcm:

Optional

alloc std?

Affects bytearray::HeapArray

use-sha default = sha2

Affects crypto_impl::sha

use-blake2 default = blake2

Affects crypto_impl::blake2

use-aes-gcm default = aes-gcm

Affects crypto_impl::aes

use-chacha20poly1305 default = chacha20poly1305

Affects crypto_impl::chacha

use-pqclean-kyber default = pqcrypto-kyber, pqcrypto-traits

Affects crypto_impl::pqclean_kyber

use-rust-crypto-kyber default = ml-kem

Affects crypto_impl::rust_crypto_kyber

use-25519 default = x25519-dalek

Affects crypto_impl::x25519

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.

aes-gcm std? use-aes-gcm
blake2 std? use-blake2
chacha20poly1305 std? use-chacha20poly1305
ml-kem std? use-rust-crypto-kyber
sha2 std? use-sha
x25519-dalek use-25519
pqcrypto-kyber use-pqclean-kyber
pqcrypto-traits use-pqclean-kyber