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 ^0.10, 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 ^0.6.4

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

Enables digest ^0.10

Affects ring-compat::digest

rand_core default getrandom?

Enables rand_core ^0.6.4