coffio/Cargo.toml

49 lines
1.6 KiB
TOML
Raw Normal View History

2024-02-14 18:16:45 +01:00
[package]
name = "coffio"
version = "0.1.0"
2024-04-20 13:03:15 +02:00
authors = ["Rodolphe Bréard <rodolphe@what.tf>"]
2024-02-14 18:16:45 +01:00
edition = "2021"
2024-02-14 19:22:04 +01:00
description = "Abstraction layer for symmetric data encryption, primarily designed for database column encryption."
2024-02-14 18:16:45 +01:00
documentation = "https://docs.rs/coffio/"
readme = "README.md"
2024-04-20 13:03:15 +02:00
repository = "https://github.com/breard-r/coffio"
2024-02-14 18:16:45 +01:00
license = "MIT OR Apache-2.0"
keywords = ["cryptography", "encryption"]
categories = ["cryptography"]
[features]
2024-04-20 11:48:58 +02:00
default = ["aes", "chacha", "ikm-management"]
encryption = []
2024-04-20 11:48:58 +02:00
aes = ["encryption", "aes-gcm", "hkdf", "sha2"]
chacha = ["encryption", "chacha20poly1305", "blake3"]
ikm-management = []
encrypt-at = []
benchmark = ["criterion"]
2024-02-14 18:16:45 +01:00
[dependencies]
2024-02-14 23:11:00 +01:00
base64ct = { version = "1.6.0", default-features = false, features = ["std"] }
getrandom = { version = "0.2.12", default-features = false }
2024-02-15 10:56:21 +01:00
thiserror = { version = "1.0.57", default-features = false }
2024-03-23 19:23:14 +01:00
2024-04-20 11:48:58 +02:00
# chacha feature:
# - XChaCha20Poly1305WithBlake3
chacha20poly1305 = { version = "0.10.1", default-features = false, features = ["std"], optional = true }
blake3 = { version = "1.5.0", default-features = false, optional = true }
# aes feature:
# - Aes128GcmWithSha256
aes-gcm = { version = "0.10.3", default-features = false, features = ["std", "aes"], optional = true }
hkdf = { version = "0.12.4", default-features = false, features = ["std"], optional = true }
sha2 = { version = "0.10.8", default-features = false, features = ["std"], optional = true }
# Not in dev-dependencies so it can be optional
criterion = { version = "0.5.1", optional = true }
2024-03-23 19:23:14 +01:00
[[bench]]
name = "decryption"
harness = false
[[bench]]
name = "encryption"
harness = false