Cargo Features
[dependencies]
secp256k1 = { version = "0.32.0-beta.2", default-features = false, features = ["std", "alloc", "recovery", "lowmemory", "global-context", "global-context-less-secure", "arbitrary", "rand", "serde"] }
- default = std
-
The
stdfeature is set by default wheneversecp256k1is added withoutsomewhere in the dependency tree.default-features = false - std default global-context? = alloc
-
Enables std of secp256k1-sys, std, std_rng and thread_rng of optional rand
Affects
context::global,schnorr::sign… - alloc std
-
allow use of Secp256k1::new and related API that requires an allocator
Enables alloc of secp256k1-sys
- recovery
-
Enables recovery of secp256k1-sys
- lowmemory
-
Enables lowmemory of secp256k1-sys
- global-context global-context-less-secure? = std
-
Affects
context::global… - global-context-less-secure = global-context
-
disable re-randomization of the global context, which provides some defense-in-depth against sidechannel attacks. You should only use this feature if you expect the
randcrate's thread_rng to panic. (If you are sure therandandstdfeatures will not be enabled, e.g. if you are doing a no-std build, then this feature does nothing and is not necessary.) - arbitrary
-
Enables arbitrary