crypt-io 0.3.0

AEAD encryption (ChaCha20-Poly1305, AES-256-GCM), hashing (BLAKE3, SHA-2), MAC (HMAC, BLAKE3 keyed), and KDF (HKDF, Argon2id) for Rust. Algorithm-agile. RustCrypto-backed primitives with REPS discipline. Simple API. Sub-microsecond throughput.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "crypt-io"
version = "0.3.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AEAD encryption (ChaCha20-Poly1305, AES-256-GCM), hashing (BLAKE3, SHA-2), MAC (HMAC, BLAKE3 keyed), and KDF (HKDF, Argon2id) for Rust. Algorithm-agile. RustCrypto-backed primitives with REPS discipline. Simple API. Sub-microsecond throughput."
homepage = "https://github.com/jamesgober/crypt-io"
documentation = "https://docs.rs/crypt-io"
readme = "README.md"
keywords = [
    "encryption",
    "cryptography",
    "ciphers",
    "crypto",
    "hash",
]
categories = [
    "cryptography",
    "authentication",
    "algorithms",
    "encoding",
    "data-structures",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/crypt-io"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
aead-aes-gcm = ["dep:aes-gcm"]
aead-all = [
    "aead-chacha20",
    "aead-aes-gcm",
]
aead-chacha20 = ["dep:chacha20poly1305"]
async-trait = ["dep:async-trait"]
default = [
    "std",
    "zeroize",
    "aead-chacha20",
    "aead-aes-gcm",
    "hash-blake3",
    "mac-hmac",
    "kdf-hkdf",
]
hash-all = [
    "hash-blake3",
    "hash-sha2",
]
hash-blake3 = ["dep:blake3"]
hash-sha2 = ["dep:sha2"]
kdf-all = [
    "kdf-hkdf",
    "kdf-argon2",
]
kdf-argon2 = ["dep:argon2"]
kdf-hkdf = [
    "dep:hkdf",
    "hash-sha2",
]
logging = ["dep:log-io"]
mac-all = [
    "mac-hmac",
    "mac-blake3",
]
mac-blake3 = ["hash-blake3"]
mac-hmac = [
    "dep:hmac",
    "hash-sha2",
]
metrics = ["dep:metrics-lib"]
preset-all = [
    "std",
    "zeroize",
    "aead-all",
    "hash-all",
    "mac-all",
    "kdf-all",
    "stream",
]
preset-minimal = [
    "std",
    "aead-chacha20",
]
std = []
stream = ["aead-chacha20"]
zeroize = ["dep:zeroize"]

[lib]
name = "crypt_io"
path = "src/lib.rs"

[[test]]
name = "smoke"
path = "tests/smoke.rs"

[[bench]]
name = "crypt_bench"
path = "benches/crypt_bench.rs"
harness = false

[dependencies.aes-gcm]
version = "0.10"
optional = true

[dependencies.argon2]
version = "0.5"
optional = true

[dependencies.async-trait]
version = "0.1"
optional = true

[dependencies.blake3]
version = "1"
optional = true

[dependencies.chacha20poly1305]
version = "0.10"
optional = true

[dependencies.error-forge]
version = "1"

[dependencies.hkdf]
version = "0.12"
optional = true

[dependencies.hmac]
version = "0.12"
optional = true

[dependencies.log-io]
version = "1"
optional = true

[dependencies.metrics-lib]
version = "1"
optional = true

[dependencies.mod-rand]
version = "1"

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.zeroize]
version = "1.7"
features = ["derive"]
optional = true

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.proptest]
version = "1"

[profile.bench]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 2

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols"