Crate features / k256
Feature flags · k256 0.14.0 · from crates.io 2026-10-24
k256 features: what each one does, and the line to copy
Short answerk256 0.14.0 has 17 features. By default it turns on arithmetic, ecdsa, pkcs8, precomputed-tables, schnorr, std; add default-features = false to start from nothing. It needs Rust 1.85 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
alloc | ecdsa-core?/alloc, elliptic-curve/alloc, primeorder?/alloc | |
arithmetic | yes | elliptic-curve/arithmetic, dep:primeorder |
critical-section | primeorder/critical-section, precomputed-tables | |
digest | ecdsa-core/digest | |
ecdh | arithmetic, elliptic-curve/ecdh | |
ecdsa | yes | arithmetic, ecdsa-core/algorithm, sha256 |
getrandom | ecdsa-core?/getrandom, elliptic-curve/getrandom | |
group-digest | hash2curve, sha2 | |
hash2curve | arithmetic, dep:hash2curve, primeorder/hash2curve | |
pem | ecdsa-core/pem, elliptic-curve/pem, pkcs8 | |
pkcs8 | yes | ecdsa-core/pkcs8, elliptic-curve/pkcs8 |
precomputed-tables | yes | arithmetic, primeorder/basepoint-table |
schnorr | yes | arithmetic, sha256, signature |
serde | ecdsa-core/serde, elliptic-curve/serde, pkcs8, serdect | |
sha256 | digest, sha2 | |
std | yes | alloc, ecdsa-core?/std, elliptic-curve/std, getrandom, primeorder?/std |
test-vectors | hex-literal |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version k256 declares (rust-version), and the release that changed it:
- 0.10.0-pre.1 (2021-11-22): Rust 1.56
- 0.11.0-pre.0 (2022-01-20): Rust 1.57
- 0.10.3 (2022-03-14): Rust 1.56
- 0.11.0 (2022-05-09): Rust 1.57
- 0.12.0 (2023-01-16): Rust 1.60
- 0.13.0 (2023-03-03): Rust 1.65
- 0.14.0-pre.0 (2024-06-05): Rust 1.73
- 0.13.4 (2024-09-20): Rust 1.65
- 0.14.0-pre.2 (2024-09-22): Rust 1.73
- 0.14.0-pre.3 (2025-05-29): Rust 1.85
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p k256 --precise <version>, or use resolver 3, which picks compatible versions for you.
More on k256
Real downloads, dependents and alternatives: k256 crate data (245.3K real downloads a day, 806 dependents).
docs.rs feature list · crates.io · license Apache-2.0 OR MIT · edition 2024
Up next
Before you depend on itk256 crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?