diff --git a/Cargo.toml b/Cargo.toml index 25020b7111..8cebd0d606 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" ], optional = true } hashbrown = { version = "0.8", optional = true } [dev-dependencies] diff --git a/contrib/test.sh b/contrib/test.sh index 676e26bb86..7e4f90d4f3 100755 --- a/contrib/test.sh +++ b/contrib/test.sh @@ -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