From 9b48fd43fe203ee6dc7451264768093d9cc61297 Mon Sep 17 00:00:00 2001 From: River Kanies Date: Mon, 18 Nov 2024 12:46:52 -0600 Subject: [PATCH] fix(testenv): disable downloads (bitcoind and electrsd) for docs.rs builds of crate testenv --- crates/bitcoind_rpc/Cargo.toml | 2 +- crates/electrum/Cargo.toml | 2 +- crates/esplora/Cargo.toml | 2 +- crates/testenv/Cargo.toml | 11 +++++++++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/crates/bitcoind_rpc/Cargo.toml b/crates/bitcoind_rpc/Cargo.toml index a34260074..6bf55262c 100644 --- a/crates/bitcoind_rpc/Cargo.toml +++ b/crates/bitcoind_rpc/Cargo.toml @@ -21,7 +21,7 @@ bitcoincore-rpc = { version = "0.19.0" } bdk_core = { path = "../core", version = "0.3.0", default-features = false } [dev-dependencies] -bdk_testenv = { path = "../testenv", default-features = false } +bdk_testenv = { path = "../testenv" } bdk_chain = { path = "../chain" } [features] diff --git a/crates/electrum/Cargo.toml b/crates/electrum/Cargo.toml index 03c3783b3..b34a8d727 100644 --- a/crates/electrum/Cargo.toml +++ b/crates/electrum/Cargo.toml @@ -17,7 +17,7 @@ bdk_core = { path = "../core", version = "0.3.0" } electrum-client = { version = "0.21", features = [ "proxy" ], default-features = false } [dev-dependencies] -bdk_testenv = { path = "../testenv", default-features = false } +bdk_testenv = { path = "../testenv" } bdk_chain = { path = "../chain" } [features] diff --git a/crates/esplora/Cargo.toml b/crates/esplora/Cargo.toml index 2f42b4fd7..3ebbd59c0 100644 --- a/crates/esplora/Cargo.toml +++ b/crates/esplora/Cargo.toml @@ -23,7 +23,7 @@ miniscript = { version = "12.0.0", optional = true, default-features = false } [dev-dependencies] bdk_chain = { path = "../chain" } -bdk_testenv = { path = "../testenv", default-features = false } +bdk_testenv = { path = "../testenv" } tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] } [features] diff --git a/crates/testenv/Cargo.toml b/crates/testenv/Cargo.toml index ee7541ea8..2b939b59a 100644 --- a/crates/testenv/Cargo.toml +++ b/crates/testenv/Cargo.toml @@ -17,9 +17,16 @@ workspace = true [dependencies] bdk_chain = { path = "../chain", version = "0.20.0", default-features = false } -electrsd = { version = "0.28.0", features = [ "bitcoind_25_0", "esplora_a33e97e1", "legacy" ] } +electrsd = { version = "0.28.0", features = [ "legacy" ], default-features = false } + +[dev-dependencies] +bdk_testenv = { path = "." } [features] -default = ["std"] +default = ["std", "download"] +download = ["electrsd/bitcoind_25_0", "electrsd/esplora_a33e97e1"] std = ["bdk_chain/std"] serde = ["bdk_chain/serde"] + +[package.metadata.docs.rs] +no-default-features = true \ No newline at end of file