Skip to content

Commit fe34cc1

Browse files
committed
fix(testenv): disable downloads (bitcoind and electrsd) for docs.rs builds of crate testenv
1 parent 3bc45b5 commit fe34cc1

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

crates/bitcoind_rpc/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ bitcoincore-rpc = { version = "0.19.0" }
2121
bdk_core = { path = "../core", version = "0.3.0", default-features = false }
2222

2323
[dev-dependencies]
24-
bdk_testenv = { path = "../testenv", default-features = false }
24+
bdk_testenv = { path = "../testenv" }
2525
bdk_chain = { path = "../chain" }
2626

2727
[features]

crates/electrum/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ bdk_core = { path = "../core", version = "0.3.0" }
1717
electrum-client = { version = "0.21", features = [ "proxy" ], default-features = false }
1818

1919
[dev-dependencies]
20-
bdk_testenv = { path = "../testenv", default-features = false }
20+
bdk_testenv = { path = "../testenv" }
2121
bdk_chain = { path = "../chain" }
2222

2323
[features]

crates/esplora/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ miniscript = { version = "12.0.0", optional = true, default-features = false }
2323

2424
[dev-dependencies]
2525
bdk_chain = { path = "../chain" }
26-
bdk_testenv = { path = "../testenv", default-features = false }
26+
bdk_testenv = { path = "../testenv" }
2727
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] }
2828

2929
[features]

crates/testenv/Cargo.toml

+9-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,16 @@ workspace = true
1717

1818
[dependencies]
1919
bdk_chain = { path = "../chain", version = "0.20.0", default-features = false }
20-
electrsd = { version = "0.28.0", features = [ "bitcoind_25_0", "esplora_a33e97e1", "legacy" ] }
20+
electrsd = { version = "0.28.0", features = [ "legacy" ], default-features = false }
21+
22+
[dev-dependencies]
23+
bdk_testenv = { path = "." }
2124

2225
[features]
23-
default = ["std"]
26+
default = ["std", "download"]
27+
download = ["electrsd/bitcoind_25_0", "electrsd/esplora_a33e97e1"]
2428
std = ["bdk_chain/std"]
2529
serde = ["bdk_chain/serde"]
30+
31+
[package.metadata.docs.rs]
32+
no-default-features = true

0 commit comments

Comments
 (0)