Crate features / secp256k1
Feature flags · secp256k1 0.33.1 · from crates.io 2026-10-24
secp256k1 features: what each one does, and the line to copy
Short answersecp256k1 0.33.1 has 7 features. By default it turns on std; add default-features = false to start from nothing. It needs Rust 1.63.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
alloc | secp256k1-sys/alloc | |
arbitrary | dep:arbitrary | |
global-context | std | |
global-context-less-secure | global-context | |
lowmemory | secp256k1-sys/lowmemory | |
recovery | secp256k1-sys/recovery | |
std | yes | alloc, secp256k1-sys/std, rand?/std, rand?/std_rng, rand?/thread_rng, rand?/small_rng |
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 secp256k1 declares (rust-version), and the release that changed it:
- 0.29.0 (2024-04-02): Rust 1.56.1
- 0.30.0 (2024-10-09): Rust 1.63.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p secp256k1 --precise <version>, or use resolver 3, which picks compatible versions for you.
More on secp256k1
Real downloads, dependents and alternatives: secp256k1 crate data (279.4K real downloads a day, 632 dependents).
Security record: secp256k1 advisories.
docs.rs feature list · crates.io · license CC0-1.0 · edition 2021
Up next
Before you depend on itsecp256k1 crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?