Cargo Features

DER has no features set by default.

der = { version = "0.7.8", features = ["std", "alloc", "bytes", "derive", "oid", "pem", "real", "arbitrary", "flagset", "time"] }
std arbitrary? = alloc
alloc bytes? pem? std?

Enables alloc of optional zeroize

Affects set_of::SetOfVec, encode::Encode.encode_to_vec, encode::Encode.to_der, reader::Reader.read_vec

bytes = alloc

Enables der_derive


Enables const-oid

pem = alloc, zeroize

Enables pem-rfc7468

Affects decode::DecodePem, encode::EncodePem, pem::PemReader

arbitrary = std

Enables arbitrary, arbitrary of optional const-oid

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

flagset implicit feature
time implicit feature