From 514bbe5ecc76b4ded376e7a6e3e5a2c998f46b65 Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Sat, 4 Feb 2023 17:01:12 -0500 Subject: [PATCH] Disable default feature (i.e. alloc) of zeroize in argon2 zeroize is not used on Vec or String types for argon2, so removing the default alloc feature allows the zeroize feature to be enabled in argon2 for no-std targets. --- argon2/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml index 92ba47d8..dfecf385 100644 --- a/argon2/Cargo.toml +++ b/argon2/Cargo.toml @@ -21,7 +21,7 @@ blake2 = { version = "0.10.6", default-features = false } # optional dependencies password-hash = { version = "=0.5.0-pre.0", optional = true } -zeroize = { version = "1", optional = true } +zeroize = { version = "1", default-features = false, optional = true } [dev-dependencies] hex-literal = "0.3"