Cargo Features

[dependencies]
noise-rust-crypto = { version = "0.6.2", default-features = false, features = ["x25519", "use-x25519", "use-chacha20poly1305", "use-aes-256-gcm", "use-blake2", "use-sha2"] }
default = use-aes-256-gcm, use-blake2, use-chacha20poly1305, use-sha2, use-x25519

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

x25519 use-x25519 = x25519-dalek

Enables static_secrets of x25519-dalek

Affects noise-rust-crypto::X25519

use-x25519 default = x25519

Enables getrandom, precomputed-tables and zeroize of x25519-dalek

use-chacha20poly1305 default = chacha20poly1305

Affects noise-rust-crypto::ChaCha20Poly1305

use-aes-256-gcm default = aes-gcm

Affects noise-rust-crypto::Aes256Gcm

use-blake2 default = blake2

Affects noise-rust-crypto::Blake2s, noise-rust-crypto::Blake2b

use-sha2 default = sha2

Affects noise-rust-crypto::Sha256, noise-rust-crypto::Sha512

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.

x25519-dalek use-x25519 x25519?
aes-gcm use-aes-256-gcm
chacha20poly1305 use-chacha20poly1305
blake2 use-blake2
sha2 use-sha2