Skip to content

Commit

Permalink
Disable Serde's default-features
Browse files Browse the repository at this point in the history
With this patch, 'use-serde' will no longer compile serde/std. Those who
wish to compile Serde with `std` should explicitely enable `std`.
  • Loading branch information
ass3rt committed Apr 22, 2022
1 parent 83514c8 commit 3a9cc9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -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" ], optional = true }
hashbrown = { version = "0.8", optional = true }

[dev-dependencies]
Expand Down
2 changes: 2 additions & 0 deletions contrib/test.sh
Expand Up @@ -81,6 +81,8 @@ then
cargo new dep_test
cd dep_test
echo 'bitcoin = { path = "..", features = ["use-serde"] }' >> Cargo.toml
echo 'serde = { version = "1" }' >> Cargo.toml


cargo test --verbose
fi

0 comments on commit 3a9cc9e

Please sign in to comment.