Move criterion out of dev-dependencies so it can be optional

This commit is contained in:
Rodolphe Bréard 2024-04-20 18:28:47 +02:00
parent 1b95ba7edd
commit 434b3b8bd6

View file

@ -18,6 +18,7 @@ aes = ["encryption", "aes-gcm", "hkdf", "sha2"]
chacha = ["encryption", "chacha20poly1305", "blake3"] chacha = ["encryption", "chacha20poly1305", "blake3"]
ikm-management = [] ikm-management = []
encrypt-at = [] encrypt-at = []
benchmark = ["criterion"]
[dependencies] [dependencies]
base64ct = { version = "1.6.0", default-features = false, features = ["std"] } base64ct = { version = "1.6.0", default-features = false, features = ["std"] }
@ -35,8 +36,8 @@ aes-gcm = { version = "0.10.3", default-features = false, features = ["std", "ae
hkdf = { version = "0.12.4", default-features = false, features = ["std"], 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 } sha2 = { version = "0.10.8", default-features = false, features = ["std"], optional = true }
[dev-dependencies] # Not in dev-dependencies so it can be optional
criterion = "0.5.1" criterion = { version = "0.5.1", optional = true }
[[bench]] [[bench]]
name = "decryption" name = "decryption"