]> Untitled Git - bdk/commitdiff
Fix cargo features
author志宇 <hello@evanlinjin.me>
Mon, 26 Jun 2023 00:22:26 +0000 (08:22 +0800)
committer志宇 <hello@evanlinjin.me>
Mon, 26 Jun 2023 03:02:06 +0000 (11:02 +0800)
* `bdk_chain/std` should also enable `miniscript/std`
* use the version of `hashbrown` that `bitcoin` and `miniscript` is
  using

crates/chain/Cargo.toml

index 0d8123ca78d81a2e11da06f94a35739e61171a87..03d5a19360e8f7ad6de9acffcc16f809b47b4f8a 100644 (file)
@@ -13,12 +13,13 @@ readme = "README.md"
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
 [dependencies]
+# For no-std, remember to enable the bitcoin/no-std feature
 bitcoin = { version = "0.29", default-features = false }
 serde_crate = { package = "serde", version = "1", optional = true, features = ["derive"] }
 
 # Use hashbrown as a feature flag to have HashSet and HashMap from it.
 # note version 0.13 breaks outs MSRV.
-hashbrown = { version = "0.12", optional = true, features = ["serde"] }
+hashbrown = { version = "0.11", optional = true, features = ["serde"] }
 miniscript = { version = "9.0.0", optional = true, default-features = false }
 
 [dev-dependencies]
@@ -26,5 +27,5 @@ rand = "0.8"
 
 [features]
 default = ["std"]
-std = ["bitcoin/std"]
-serde = ["serde_crate", "bitcoin/serde" ]
+std = ["bitcoin/std", "miniscript/std"]
+serde = ["serde_crate", "bitcoin/serde"]