Cargo Features

SPKI has no features set by default.

[dependencies]
spki = { version = "0.8.0-rc.1", features = ["std", "alloc", "base64", "fingerprint", "pem", "arbitrary"] }
std arbitrary? = alloc

Enables std of der

Affects traits::DecodePublicKey.read_public_key_der_file, traits::EncodePublicKey.write_public_key_der_file, traits::DecodePublicKey.read_public_key_pem_file, traits::EncodePublicKey.write_public_key_pem_file

alloc pem? std?

Enables alloc of optional base64ct and der

Affects algorithm::AlgorithmIdentifierOwned, spki::SubjectPublicKeyInfoOwned, traits::EncodePublicKey, traits::DynAssociatedAlgorithmIdentifier, traits::DynSignatureAlgorithmIdentifier, traits::SignatureBitStringEncoding

base64

Enables base64ct

fingerprint = sha2
pem = alloc

Enables pem of der

Affects traits::DecodePublicKey.from_public_key_pem, traits::EncodePublicKey.to_public_key_pem, traits::DecodePublicKey.read_public_key_pem_file, traits::EncodePublicKey.write_public_key_pem_file

arbitrary = std

Enables arbitrary of der and arbitrary

Optional dependencies

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.

sha2 fingerprint?