diff --git a/Cargo.toml b/Cargo.toml index 0f9050d62f..7858c98d34 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 41503bc997..5ec0e50c31 100755 --- a/contrib/test.sh +++ b/contrib/test.sh @@ -93,7 +93,7 @@ if [ "$AS_DEPENDENCY" = true ] then cargo new dep_test cd dep_test - echo 'bitcoin = { path = "..", features = ["use-serde"] }' >> Cargo.toml + echo 'bitcoin = { path = "..", features = ["use-serde", "std"] }' >> Cargo.toml # Pin `cc` for Rust 1.29 if [ -n "$PIN_VERSIONS" ]; then