Crate features / p256
Feature flags · p256 0.14.0 · from crates.io 2026-10-24
p256 features: what each one does, and the line to copy
Short answerp256 0.14.0 has 16 features. By default it turns on arithmetic, ecdsa, pem, precomputed-tables, 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 | dep:primefield, dep:primeorder, elliptic-curve/arithmetic |
digest | ecdsa-core/digest | |
ecdh | arithmetic, elliptic-curve/ecdh | |
ecdsa | yes | arithmetic, ecdsa-core/algorithm, sha256 |
getrandom | elliptic-curve/getrandom | |
group-digest | hash2curve, sha2 | |
hash2curve | arithmetic, dep:hash2curve, primeorder/hash2curve | |
oprf | group-digest | |
pem | yes | elliptic-curve/pem, ecdsa-core/pem, pkcs8 |
pkcs8 | ecdsa-core?/pkcs8, elliptic-curve/pkcs8 | |
precomputed-tables | yes | arithmetic, primeorder/basepoint-table |
serde | ecdsa-core?/serde, elliptic-curve/serde, primeorder?/serde, serdect | |
sha256 | digest, sha2 | |
std | yes | alloc, ecdsa-core?/std, elliptic-curve/std, getrandom, primeorder?/std |
test-vectors | dep: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 p256 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.12.0 (2023-01-16): Rust 1.60
- 0.13.0 (2023-03-03): Rust 1.65
- 0.14.0-pre.0 (2024-01-19): 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 p256 --precise <version>, or use resolver 3, which picks compatible versions for you.
More on p256
Real downloads, dependents and alternatives: p256 crate data (724.3K real downloads a day, 1,172 dependents).
docs.rs feature list · crates.io · license Apache-2.0 OR MIT · edition 2024
Up next
Before you depend on itp256 crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?