Cargo Features

[dependencies]
sec1 = { version = "0.8.0-rc.3", default-features = false, features = ["std", "alloc", "der", "pem", "point", "serde", "zeroize", "subtle"] }
default = der, point

These default features are set whenever sec1 is added without default-features = false somewhere in the dependency tree.

std = alloc

Enables std of optional der

Affects traits::DecodeEcPrivateKey.read_sec1_der_file, traits::EncodeEcPrivateKey.write_sec1_der_file, traits::DecodeEcPrivateKey.read_sec1_pem_file, traits::EncodeEcPrivateKey.write_sec1_pem_file

alloc pem? std?

Enables alloc of optional der, optional pkcs8, and optional zeroize

Affects traits::EncodeEcPrivateKey

der default pem? = zeroize

Enables der

pem = alloc

Enables pem of der and pkcs8

Affects traits::DecodeEcPrivateKey.from_sec1_pem, traits::EncodeEcPrivateKey.to_sec1_pem, traits::DecodeEcPrivateKey.read_sec1_pem_file, traits::EncodeEcPrivateKey.write_sec1_pem_file

point default

Enables base16ct and hybrid-array

Affects sec1::point

serde

Enables serdect

zeroize der

Enables zeroize, zeroize of optional der

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.

pkcs8 pem?

Affects sec1::ALGORITHM_OID

subtle implicit feature

Enables subtle

subtle:

Pure-Rust traits and utilities for constant-time cryptographic implementations