[package]
name = "why2"
version = "1.4.13"
authors.workspace = true
edition.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
description = "Lightweight, fast, secure, and easy to use encryption system."
keywords = ["encryption", "security", "cryptography"]
categories = ["cryptography"]
readme = "../README.md"
[dependencies]
rand = "0.10.1"
rand_chacha = "0.10.0"
sha2 = { workspace = true }
rayon = "1.12.0"
zeroize = { workspace = true }
subtle = { version = "2.6.1", optional = true }
hmac = { version = "0.13.0", optional = true }
wide = "1.4.0"
[dev-dependencies]
criterion = "0.8.2"
[features]
default = ["constant-time", "auth"]
constant-time = ["dep:subtle"]
auth = ["dep:hmac"]
[package.metadata.docs.rs]
rustdoc-args = ["--html-in-header", "docs-header.html"]
[[bench]]
name = "comprehensive"
path = "../benches/comprehensive.rs"
harness = false
[[example]]
name = "basic_encryption"
path = "../examples/basic_encryption.rs"
[[example]]
name = "custom_key"
path = "../examples/custom_key.rs"
[[example]]
name = "binary_data"
path = "../examples/binary_data.rs"
[[example]]
name = "grid_sizes"
path = "../examples/grid_sizes.rs"
[[example]]
name = "file_encryption"
path = "../examples/file_encryption.rs"
[[example]]
name = "authenticated_encryption"
path = "../examples/authenticated_encryption.rs"
[[test]]
name = "why2_integration"
path = "../tests/mod.rs"