Cargo Features
[dependencies]
k256 = { version = "0.13.3", defaultfeatures = false, features = ["std", "alloc", "arithmetic", "bits", "criticalsection", "digest", "ecdh", "ecdsa", "exposefield", "hash2curve", "jwk", "pem", "pkcs8", "precomputedtables", "schnorr", "serde", "sha256", "testvectors"] }
 default = arithmetic, ecdsa, pkcs8, precomputedtables, schnorr, std

These default features are set whenever
k256
is added without
somewhere in the dependency tree.defaultfeatures = false  std default = alloc

Enables std of optional ecdsa, ellipticcurve, and optional once_cell
once_cell:
optional dependencies
 alloc std

Enables alloc of optional ecdsa and ellipticcurve
 arithmetic default bits? ecdh? ecdsa exposefield? hash2curve? precomputedtables schnorr

Enables arithmetic of ellipticcurve
Affects
k256::NonZeroScalar
,k256::PublicKey
…  bits = arithmetic

Enables bits of ellipticcurve
Affects
k256::ScalarBits
…  criticalsection = precomputedtables

Enables criticalsection of once_cell
 digest sha256?
 ecdh = arithmetic

Enables ecdh of ellipticcurve
Affects
k256::ecdh
…  ecdsa default = arithmetic, sha256

Enables signing and verifying of ecdsa
Affects
ecdsa::SigningKey
,ecdsa::VerifyingKey
…  exposefield = arithmetic
 hash2curve = arithmetic

Enables hash2curve of ellipticcurve
 jwk

Enables jwk of ellipticcurve
 pem = pkcs8

Enables pem of ecdsa and ellipticcurve
 pkcs8 default pem?

Enables pkcs8 of ecdsa and ellipticcurve
 precomputedtables default criticalsection? = arithmetic, once_cell
 schnorr default = arithmetic, sha256, signature

Affects
k256::schnorr
…  serde = serdect

Enables serde of ecdsa and ellipticcurve
 sha256 ecdsa schnorr = digest, sha2
 testvectors = hexliteral
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features.
 once_cell criticalsection? precomputedtables
 ecdsacore digest? ecdsa pem? pkcs8 serde?

Enables ecdsa
Affects
k256::ecdsa
…  hexliteral testvectors?
 serdect serde?
 sha2 sha256?
 signature schnorr