Cargo Features

[dependencies]
coffio = { version = "0.1.0", default-features = false, features = ["encryption", "aes", "chacha", "ikm-management", "encrypt-at", "benchmark"] }
default = aes, chacha, ikm-management

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

encryption aes chacha

Affects coffio::DEFAULT_KEY_CTX_PERIODICITY

aes default = aes-gcm, encryption, hkdf, sha2

Affects coffio::DEFAULT_SCHEME

chacha default = blake3, chacha20poly1305, encryption

Affects coffio::DEFAULT_SCHEME

ikm-management default

Affects coffio::DEFAULT_IKM_DURATION, coffio::DEFAULT_SCHEME, coffio::DEFAULT_SCHEME

encrypt-at
benchmark = criterion

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.

chacha20poly1305 chacha

Enables chacha20poly1305

chacha feature:
- XChaCha20Poly1305WithBlake3

blake3 chacha
aes-gcm aes

Enables aes-gcm

aes feature:
- Aes128GcmWithSha256

hkdf aes
sha2 aes
criterion benchmark?

Enables criterion

Not in dev-dependencies so it can be optional