Cargo Features

[dependencies]
ecdsa = { version = "0.17.0-pre.5", default-features = false, features = ["std", "alloc", "arithmetic", "dev", "digest", "hazmat", "pkcs8", "pem", "serde", "signing", "verifying", "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 and signature

alloc std?

Enables alloc of elliptic-curve, signature, and spki

arithmetic dev? signing? verifying?

Enables arithmetic of elliptic-curve

Affects hazmat::sign_prehashed, hazmat::verify_prehashed

dev = arithmetic, digest, hazmat

Enables dev of elliptic-curve

Affects ecdsa::dev

digest default dev? pkcs8? signing? verifying?

Enables digest, digest of signature

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

hazmat dev? signing? verifying?

Affects ecdsa::hazmat

pkcs8 pem? = der, digest

Enables pkcs8 of elliptic-curve

pem = pkcs8

Enables pem of elliptic-curve

serde = serdect

Enables serde of elliptic-curve

signing = arithmetic, digest, hazmat, rfc6979
verifying = arithmetic, digest, hazmat

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.

der pkcs8?

Enables der

optional dependencies

Affects ecdsa::der

rfc6979 signing?

Affects hazmat::sign_prehashed_rfc6979

serdect serde?
sha2 implicit feature
spki alloc?