Cargo Features

[dependencies]
ecdsa = { version = "0.16.9", default-features = false, features = ["std", "alloc", "arithmetic", "dev", "digest", "hazmat", "pkcs8", "pem", "serde", "signing", "verifying", "sha2", "spki"] }
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::SignPrimitive, hazmat::VerifyPrimitive, 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::VerifyPrimitive.verify_digest, 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.

der pkcs8?

Affects ecdsa::der

rfc6979 signing?

Affects hazmat::SignPrimitive.try_sign_prehashed_rfc6979

serdect serde?

With alloc

sha2 implicit feature

With oid

spki implicit feature