Skip to content

Commit 10c42dc

Browse files
committed
fix: correct Cargo.toml and refactor test utils
Since there is no way we can enable miniscript/no-std for bdk_chain::miniscript, cargo throws up an error when compiling with `--no-default-features`. Adding miniscript as another dependency does not resolve the issue because bdk_chain/miniscript is also required. Removed unnecessary links from docs as just learned that docs.rs can infers the links to dependencies.
1 parent 6e5c9f4 commit 10c42dc

File tree

4 files changed

+242
-136
lines changed

4 files changed

+242
-136
lines changed

crates/testenv/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ readme = "README.md"
1616
workspace = true
1717

1818
[dependencies]
19-
bdk_chain = { path = "../chain", version = "0.23.1", default-features = false, features = ["miniscript"]}
19+
bdk_chain = { path = "../chain", version = "0.23.1", default-features = false}
2020
electrsd = { version = "0.28.0", features = [ "legacy" ], default-features = false }
2121
anyhow = "1.0.98"
2222
tempfile = "3.20.0"
@@ -26,6 +26,7 @@ bdk_testenv = { path = "." }
2626

2727
[features]
2828
default = ["std", "download"]
29+
miniscript = ["std", "bdk_chain/miniscript"]
2930
download = ["electrsd/bitcoind_25_0", "electrsd/esplora_a33e97e1"]
3031
std = ["bdk_chain/std"]
3132
serde = ["bdk_chain/serde"]

crates/testenv/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]
22

3+
#[cfg(feature = "std")]
34
pub mod persist_test_utils;
45
pub mod utils;
56

0 commit comments

Comments
 (0)