Cargo Features
[dependencies]
elliptic-curve = { version = "0.14.0-rc.28", default-features = false, features = ["std", "alloc", "arithmetic", "basepoint-table", "critical-section", "bits", "dev", "ecdh", "getrandom", "group", "pkcs8", "pem", "serde"] }
- default = arithmetic
-
The
arithmeticfeature is set by default wheneverelliptic-curveis added withoutsomewhere in the dependency tree.default-features = false - std = alloc
-
Enables std of optional once_cell, optional pkcs8, and optional sec1
once_cell:
Enables
once_cell::syncmodule. - alloc pem? serde? std?
-
Enables alloc of hybrid-array, base16ct, optional rustcrypto-ff, optional rustcrypto-group, optional pkcs8, optional sec1, and zeroize
Affects
sec1::ToSec1Point.to_sec1_bytes… - arithmetic default basepoint-table? bits? dev? ecdh? getrandom? pem? = group
-
Affects
elliptic-curve::ops,point::AffinePoint,point::ProjectivePoint,point::BatchNormalize,scalar::Scalar… - basepoint-table critical-section? = arithmetic
- critical-section = basepoint-table
-
Enables critical-section of once_cell
once_cell:
Uses
critical-sectionto implementsyncmodule. in#![no_std]mode. Please readcritical-sectiondocs carefully before enabling this feature.portable-atomicfeature is enabled for backwards compatibility. - bits = arithmetic
-
Enables bits of rustcrypto-ff
Affects
mock_curve::ScalarBits,scalar::ScalarBits… - dev = arithmetic, pem, pkcs8
-
Enables hex-literal
Affects
elliptic-curve::dev… - ecdh = arithmetic, digest
-
Enables hkdf
Affects
elliptic-curve::ecdh… - getrandom = arithmetic
-
Enables getrandom of crypto-bigint and crypto-common
- group arithmetic = ff
-
Enables rustcrypto-group
- pkcs8 dev? pem? serde? = sec1
-
Enables pkcs8
Affects
elliptic-curve::ALGORITHM_OID… - pem dev? = alloc, arithmetic
-
Enables pem-rfc7468, pem of pkcs8 and sec1
- serde = alloc, pkcs8
Features from optional dependencies
In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.