Cargo Features

[dependencies]
ed25519-dalek = { version = "2.1.0", default-features = false, features = ["std", "alloc", "asm", "batch", "fast", "digest", "hazmat", "legacy_compatibility", "pkcs8", "pem", "rand_core", "serde", "zeroize", "signature"] }
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

alloc batch? pem? std

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

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?
serde

Enables serde of ed25519, serde

zeroize default

Enables zeroize of curve25519-dalek, zeroize

Features from optional dependencies

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

signature implicit feature
merlin batch?