From 1c4614ea305a6e6bd6fa6130071c851e9630089c Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 24 Jan 2024 12:48:07 +1100 Subject: [PATCH] hashes: Remove serde-std feature We do not need to enable the "std" feature on `serde`. --- hashes/Cargo.toml | 2 -- hashes/contrib/test.sh | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/hashes/Cargo.toml b/hashes/Cargo.toml index a68a0a70..bbe6b292 100644 --- a/hashes/Cargo.toml +++ b/hashes/Cargo.toml @@ -17,7 +17,6 @@ exclude = ["tests", "contrib"] default = ["std"] std = ["alloc", "hex/std", "bitcoin-io/std"] alloc = ["hex/alloc"] -serde-std = ["serde/std"] # If you want I/O you must enable either "std" or "io". io = ["bitcoin-io"] # Smaller (but slower) implementation of sha256, sha512 and ripemd160 @@ -32,7 +31,6 @@ hex = { package = "hex-conservative", version = "0.1.1", default-features = fals bitcoin-io = { version = "0.1", default-features = false, optional = true } schemars = { version = "0.8.3", default-features = false, optional = true } -# Only enable this if you explicitly do not want to use "std", otherwise enable "serde-std". serde = { version = "1.0", default-features = false, optional = true } [dev-dependencies] diff --git a/hashes/contrib/test.sh b/hashes/contrib/test.sh index a0dc5e34..72ee47ce 100755 --- a/hashes/contrib/test.sh +++ b/hashes/contrib/test.sh @@ -2,7 +2,7 @@ set -ex -FEATURES="serde serde-std std io alloc" +FEATURES="serde std io alloc" cargo --version rustc --version