From 5703d60824c73d29611f9cca8749a5f3439c2e34 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Wed, 10 Dec 2025 21:58:17 -0700 Subject: [PATCH] argon2+ballon-hash: remove `std` feature After #767 it is no longer used This is technically true of `password-hash` as well, but as a post-1.0 crate we can't remove the `std` feature there --- argon2/Cargo.toml | 1 - argon2/src/lib.rs | 3 --- balloon-hash/Cargo.toml | 3 +-- balloon-hash/src/lib.rs | 3 --- 4 files changed, 1 insertion(+), 9 deletions(-) diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml index d830c865..6a25e054 100644 --- a/argon2/Cargo.toml +++ b/argon2/Cargo.toml @@ -35,7 +35,6 @@ hex-literal = "1" [features] default = ["alloc", "getrandom", "simple"] alloc = ["password-hash?/alloc"] -std = ["alloc", "base64ct/std"] getrandom = ["simple", "phc/getrandom"] parallel = ["dep:rayon"] diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs index 5fc1f3c7..d9cefcc3 100644 --- a/argon2/src/lib.rs +++ b/argon2/src/lib.rs @@ -134,9 +134,6 @@ compile_error!("this crate builds on 32-bit and 64-bit platforms only"); #[cfg(feature = "alloc")] extern crate alloc; -#[cfg(feature = "std")] -extern crate std; - mod algorithm; mod blake2b_long; mod block; diff --git a/balloon-hash/Cargo.toml b/balloon-hash/Cargo.toml index a9ef6adc..aee306fc 100644 --- a/balloon-hash/Cargo.toml +++ b/balloon-hash/Cargo.toml @@ -30,10 +30,9 @@ sha2 = "0.11.0-rc.3" [features] default = ["alloc", "getrandom", "password-hash"] alloc = ["password-hash/alloc"] -std = ["alloc", "getrandom"] getrandom = ["phc/getrandom"] -parallel = ["rayon", "std"] +parallel = ["dep:rayon"] password-hash = ["dep:password-hash", "dep:phc"] zeroize = ["dep:zeroize"] diff --git a/balloon-hash/src/lib.rs b/balloon-hash/src/lib.rs index d9e963e4..e66fe8d3 100644 --- a/balloon-hash/src/lib.rs +++ b/balloon-hash/src/lib.rs @@ -58,9 +58,6 @@ #[cfg(feature = "alloc")] extern crate alloc; -#[cfg(feature = "std")] -extern crate std; - mod algorithm; mod balloon; mod error;