From 3a80dc2382dc84312c07441ac5a30f965a0e4bfa Mon Sep 17 00:00:00 2001 From: Jeff Burdges Date: Wed, 1 May 2024 05:55:19 +0200 Subject: [PATCH] Reduce Cargo.toml diff --- Cargo.toml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5822324..7c3bb40 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,9 +34,7 @@ serde_bytes = { version = "0.11.5", default-features = false, optional = true } cfg-if = { version = "1.0.0", optional = true } sha2 = { version = "0.10.7", default-features = false } failure = { version = "0.1.8", default-features = false, optional = true } -zeroize = { version = "1.6", default-features = false, features = [ - "zeroize_derive", -] } +zeroize = { version = "1.6", default-features = false, features = ["zeroize_derive"] } derive-getters = "0.3.0" chacha20poly1305 = { version = "0.10.1", default-features = false } hex = { version = "0.4", default-features = true, optional = true } @@ -59,15 +57,6 @@ name = "olaf_benchmarks" required-features = ["alloc", "aead"] [features] -std = [ - "alloc", - "getrandom", - "serde_bytes/std", - "rand_core/std", - "getrandom_or_panic/std", - "chacha20poly1305/std", - "hex/std", -] default = ["std", "getrandom"] preaudit_deprecated = [] nightly = [] @@ -77,6 +66,15 @@ alloc = [ "getrandom_or_panic/alloc", "serde_bytes/alloc", ] +std = [ + "alloc", + "getrandom", + "serde_bytes/std", + "rand_core/std", + "getrandom_or_panic/std", + "chacha20poly1305/std", + "hex/std", +] asm = ["sha2/asm"] serde = ["dep:serde", "serde_bytes", "cfg-if"] # We cannot make getrandom a direct dependency because rand_core makes