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 arithmetic feature is set by default whenever elliptic-curve is added without default-features = false somewhere in the dependency tree.

std = alloc

Enables std of optional once_cell, optional pkcs8, and optional sec1

once_cell:

Enables once_cell::sync module.

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-section to implement sync module. in #![no_std] mode. Please read critical-section docs carefully before enabling this feature. portable-atomic feature 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

Enables serdect, serde of sec1

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.

digest ecdh?

Enables digest

optional dependencies

ff bits? group?

Enables rustcrypto-ff

once_cell critical-section?
sec1 pem? pkcs8? serde?

Affects elliptic-curve::sec1