Skip to content

Commit a5ce6c1

Browse files
author
ass3rt
committed
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.
1 parent d9f844b commit a5ce6c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ core2 = { version = "0.3.0", optional = true, default-features = false }
4141

4242
base64-compat = { version = "1.0.0", optional = true }
4343
bitcoinconsensus = { version = "0.19.0-3", optional = true }
44-
serde = { version = "1", features = [ "derive" ], optional = true }
44+
serde = { version = "1", default-features = false, features = [ "derive", "alloc" ], optional = true }
4545
hashbrown = { version = "0.8", optional = true }
4646

4747
[dev-dependencies]

0 commit comments

Comments
 (0)