Cargo Features

[dependencies]
ed25519-dalek = { version = "2.1.1", default-features = false, features = ["std", "alloc", "asm", "batch", "fast", "digest", "hazmat", "legacy_compatibility", "pkcs8", "pem", "rand_core", "serde", "zeroize"] }
default = fast, std, zeroize

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

std default = alloc

Enables std of ed25519, optional serde, and sha2

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

alloc batch? pem? std

Enables alloc of curve25519-dalek, ed25519, optional serde, and 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.

asm

Enables asm of sha2

batch = alloc, merlin, rand_core
fast default

Enables precomputed-tables of curve25519-dalek

digest

Enables digest of signature

Affects hazmat::raw_sign_prehashed, hazmat::raw_verify_prehashed

hazmat

Exposes the hazmat module

Affects ed25519-dalek::hazmat

legacy_compatibility

Turns off stricter checking for scalar malleability in signatures

Enables legacy_compatibility of curve25519-dalek

pkcs8 pem?

Enables pkcs8 of ed25519

pem = alloc, pkcs8

Enables pem of ed25519

rand_core batch?

Enables rand_core

serde

Enables serde, serde of ed25519

zeroize default alloc?

Enables zeroize, zeroize of curve25519-dalek

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.

signature digest?
merlin batch?

Enables merlin

optional features