Skip to content

Commit 26ade11

Browse files
committed
Fix cargo features
* `bdk_chain/std` should also enable `miniscript/std` * use the version of `hashbrown` that `bitcoin` and `miniscript` is using
1 parent 5d1f922 commit 26ade11

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

crates/chain/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,19 @@ readme = "README.md"
1313
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1414

1515
[dependencies]
16+
# For no-std, remember to enable the bitcoin/no-std feature
1617
bitcoin = { version = "0.29", default-features = false }
1718
serde_crate = { package = "serde", version = "1", optional = true, features = ["derive"] }
1819

1920
# Use hashbrown as a feature flag to have HashSet and HashMap from it.
2021
# note version 0.13 breaks outs MSRV.
21-
hashbrown = { version = "0.12", optional = true, features = ["serde"] }
22+
hashbrown = { version = "0.11", optional = true, features = ["serde"] }
2223
miniscript = { version = "9.0.0", optional = true, default-features = false }
2324

2425
[dev-dependencies]
2526
rand = "0.8"
2627

2728
[features]
2829
default = ["std"]
29-
std = ["bitcoin/std"]
30-
serde = ["serde_crate", "bitcoin/serde" ]
30+
std = ["bitcoin/std", "miniscript/std"]
31+
serde = ["serde_crate", "bitcoin/serde"]

0 commit comments

Comments
 (0)