Cargo Features

[dependencies]
x25519-dalek = { version = "2.0.1", default-features = false, features = ["alloc", "getrandom", "zeroize", "serde", "precomputed-tables", "reusable_secrets", "static_secrets"] }
default = alloc, precomputed-tables, zeroize

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

alloc default

Enables alloc of curve25519-dalek, optional serde, and optional zeroize

serde:

Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.

getrandom

Enables getrandom of rand_core

zeroize default

Enables zeroize, zeroize of curve25519-dalek

serde

Enables serde, serde of curve25519-dalek

precomputed-tables default

Enables precomputed-tables of curve25519-dalek

reusable_secrets

Affects x25519::ReusableSecret

static_secrets

Affects x25519::StaticSecret