Cargo Features

[dependencies]
orion = { version = "0.17.7", default-features = false, features = ["alloc", "safe_api", "experimental", "serde"] }
default = safe_api

The safe_api feature is set by default whenever orion is added without default-features = false somewhere in the dependency tree.

alloc

Affects kdf::argon2i

safe_api default = ct-codecs, getrandom

Affects kem::x25519_hkdf_sha256, hash::digest_from_reader, aead_interface::AeadTestRunner, streamcipher_interface::StreamCipherTestRunner, util::secure_rand_bytes, kdf::argon2i

experimental

Affects hazardous::cae

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.

getrandom safe_api
ct-codecs safe_api
serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework