Cargo Features

DER has no features set by default.

[dependencies]
der = { version = "0.8.0-rc.1", 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 bytes

derive

Enables der_derive

oid

Enables const-oid

pem = alloc, zeroize

Enables pem-rfc7468

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

real
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. These features may have been created by mistake, and this functionality may be removed in the future.

flagset implicit feature

Enables flagset

flagset:

Data types and a macro for generating enumeration-based bit flags

time implicit feature
zeroize pem?

Affects document::SecretDocument