Cargo Features

[dependencies]
p521 = { version = "0.14.0-pre.2", default-features = false, features = ["std", "alloc", "arithmetic", "digest", "ecdh", "ecdsa", "expose-field", "getrandom", "hash2curve", "jwk", "pem", "pkcs8", "serde", "sha512", "voprf", "test-vectors"] }
default = arithmetic, ecdsa, getrandom, pem, std

These default features are set whenever p521 is added without default-features = false somewhere in the dependency tree.

std default = alloc

Enables std of optional ecdsa and elliptic-curve

ecdsa:

optional dependencies

alloc std

Enables alloc of optional ecdsa, elliptic-curve, and optional primeorder

arithmetic default ecdh? ecdsa expose-field? hash2curve?

Enables primefield and primeorder

Affects p521::NonZeroScalar, p521::PublicKey

digest sha512?

Enables digest and hazmat of ecdsa

ecdh = arithmetic

Enables ecdh of elliptic-curve

Affects p521::ecdh

ecdsa default = arithmetic, sha512

Enables signing and verifying of ecdsa

Affects ecdsa::SigningKey, ecdsa::VerifyingKey

expose-field = arithmetic
getrandom default

Enables getrandom of rand_core

hash2curve = arithmetic

Enables hash2curve of elliptic-curve

jwk

Enables jwk of elliptic-curve

pem default = pkcs8

Enables pem of elliptic-curve

pkcs8 pem

Enables pkcs8 of optional ecdsa and elliptic-curve

serde = serdect

Enables serde of optional ecdsa, elliptic-curve, and optional primeorder

sha512 ecdsa = digest

Enables sha2

voprf

Enables sha2, voprf of elliptic-curve

test-vectors

Enables hex-literal

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.

ecdsa-core digest? ecdsa

Enables ecdsa

Affects p521::ecdsa

rand_core getrandom
serdect serde?