From 5e25c0103c39ea83ce1245e3b1e1e6e092c06164 Mon Sep 17 00:00:00 2001 From: ass3rt Date: Thu, 24 Mar 2022 00:27:22 -0500 Subject: [PATCH] Disable Serde's default-features With this patch, existing users of the `serde` feature will no longer be compiling with `serde/std` enabled, but this allows dependent projects to import serde and enable `serde/alloc` as required by some no-std targets. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6807491b26..620b184c8b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ core2 = { version = "0.3.0", optional = true, default-features = false } base64-compat = { version = "1.0.0", optional = true } bitcoinconsensus = { version = "0.19.0-3", optional = true } -serde = { version = "1", features = [ "derive" ], optional = true } +serde = { version = "1", default-features = false, optional = true } hashbrown = { version = "0.8", optional = true } [dev-dependencies]