Cargo Features

[dependencies]
ecdsa = { version = "0.17.0-rc.16", default-features = false, features = ["std", "alloc", "algorithm", "dev", "der", "digest", "getrandom", "hazmat", "pkcs8", "pem", "serde", "sha2"] }
default = digest

The digest feature is set by default whenever ecdsa is added without default-features = false somewhere in the dependency tree.

std = alloc

Enables std of elliptic-curve

alloc std?

Enables alloc of elliptic-curve, signature, and spki

algorithm dev? = digest, hazmat

Enables rfc6979, arithmetic of elliptic-curve

Affects hazmat::sign_prehashed, hazmat::sign_prehashed_rfc6979, hazmat::verify_prehashed

dev = algorithm

Enables dev of digest and elliptic-curve

Affects ecdsa::dev

der pkcs8?

Enables der

optional dependencies

Affects ecdsa::der

digest default algorithm? dev? pkcs8?

Enables digest, digest of elliptic-curve and signature

Affects hazmat::DigestAlgorithm, ecdsa::ECDSA_SHA224_OID, ecdsa::ECDSA_SHA256_OID, ecdsa::ECDSA_SHA384_OID, ecdsa::ECDSA_SHA512_OID, ecdsa::SignatureWithOid

getrandom

Enables getrandom of elliptic-curve

hazmat algorithm?

Affects ecdsa::hazmat

pkcs8 pem? serde? = der, digest

Enables pkcs8 of elliptic-curve

pem = pkcs8

Enables pem of elliptic-curve

serde = pkcs8

Enables serdect, serde of elliptic-curve

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.

sha2 implicit feature
spki alloc?