[package]
edition = "2024"
rust-version = "1.85"
name = "cryptkit"
version = "0.1.1"
build = false
exclude = ["/target"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cryptographic primitives for Rust: HMAC-SHA256, AES-GCM, constant-time comparison, and secure random with zeroize"
readme = "README.md"
keywords = [
"crypto",
"hmac",
"aes-gcm",
"constant-time",
"zeroize",
]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/WyattAu/cryptkit"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[package.metadata.layers]
tier = "L0"
[features]
aes-gcm = ["dep:aes-gcm"]
default = [
"hmac_sha256",
"aes-gcm",
]
ed25519 = []
fips = []
hmac_sha256 = [
"dep:hmac",
"dep:sha2",
]
[lib]
name = "cryptkit"
path = "src/lib.rs"
[[bench]]
name = "crypto_bench"
path = "benches/crypto_bench.rs"
harness = false
[dependencies.aes-gcm]
version = "0.10"
optional = true
[dependencies.hmac]
version = "0.12"
optional = true
[dependencies.rand]
version = "0.8"
[dependencies.sha2]
version = "0.10"
optional = true
[dependencies.subtle]
version = "2"
[dependencies.thiserror]
version = "2"
[dependencies.zeroize]
version = "1"
features = ["zeroize_derive"]
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.hex]
version = "0.4"
[dev-dependencies.proptest]
version = "1"
[lints.clippy]
expect_used = "warn"
indexing_slicing = "deny"
panic = "deny"
unwrap_used = "deny"