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
somewhere in the dependency tree.default-features = false - std default = alloc
- alloc batch? pem? std
-
Enables alloc of curve25519-dalek, ed25519, optional serde, and zeroize
- asm
- batch = alloc, merlin, rand_core
- fast default
-
Enables precomputed-tables of curve25519-dalek
- digest
-
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?
- pem = alloc, pkcs8
- rand_core batch?
- 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.