From 7db03f27e412fe42ec6bcc0c601ba241863c1ead 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 We do not need serde/std, only serde/alloc. Serde/std breaks no-std builds, but serde/alloc does not. Depending on serde/alloc is the more compatible approach, as the entire library already depends on alloc. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 25020b71..d89cee19 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, features = [ "derive", "alloc" ], optional = true } hashbrown = { version = "0.8", optional = true } [dev-dependencies]