Cargo Features

[dependencies]
ring-compat = { version = "0.8.0", default-features = false, features = ["std", "alloc", "getrandom", "pkcs8", "signature", "aead", "digest"] }
default = aead, alloc, digest, rand_core, signature

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

std

Enables std of optional digest, optional ecdsa, optional ed25519, and optional pkcs8

alloc default

Enables alloc of optional aead, optional ed25519, and optional pkcs8

aead:

optional dependencies

getrandom

Enables getrandom of rand_core

pkcs8

Enables pkcs8, pkcs8 of optional ed25519

signature default

Enables ecdsa, ed25519, p256, p384, pkcs8, and signature

Affects ring-compat::signature

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.

aead default

Affects ring-compat::aead

digest default

Affects ring-compat::digest

rand_core default getrandom?