Skip to content

Commit 1259599

Browse files
committed
chore: remove anyhow dev dependency from electrum, esplora, and bitcoind_rpc
1 parent fbe1782 commit 1259599

File tree

9 files changed

+7
-20
lines changed

9 files changed

+7
-20
lines changed

crates/bitcoind_rpc/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ bdk_chain = { path = "../chain", version = "0.13", default-features = false }
2020

2121
[dev-dependencies]
2222
bdk_testenv = { path = "../testenv", default_features = false }
23-
anyhow = { version = "1" }
2423

2524
[features]
2625
default = ["std"]

crates/bitcoind_rpc/tests/test_emitter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use bdk_chain::{
77
local_chain::{CheckPoint, LocalChain},
88
Append, BlockId, IndexedTxGraph, SpkTxOutIndex,
99
};
10-
use bdk_testenv::TestEnv;
10+
use bdk_testenv::{anyhow, TestEnv};
1111
use bitcoin::{hashes::Hash, Block, OutPoint, ScriptBuf, WScriptHash};
1212
use bitcoincore_rpc::RpcApi;
1313

crates/electrum/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,4 @@ electrum-client = { version = "0.19" }
1717
#rustls = { version = "=0.21.1", optional = true, features = ["dangerous_configuration"] }
1818

1919
[dev-dependencies]
20-
bdk_testenv = { path = "../testenv", default-features = false }
21-
electrsd = { version= "0.27.1", features = ["bitcoind_25_0", "esplora_a33e97e1", "legacy"] }
22-
anyhow = "1"
20+
bdk_testenv = { path = "../testenv", default-features = false }

crates/electrum/tests/test_electrum.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
use anyhow::Result;
21
use bdk_chain::{
32
bitcoin::{hashes::Hash, Address, Amount, ScriptBuf, WScriptHash},
43
keychain::Balance,
54
local_chain::LocalChain,
65
ConfirmationTimeHeightAnchor, IndexedTxGraph, SpkTxOutIndex,
76
};
87
use bdk_electrum::{ElectrumExt, ElectrumUpdate};
9-
use bdk_testenv::TestEnv;
10-
use electrsd::bitcoind::bitcoincore_rpc::RpcApi;
8+
use bdk_testenv::{anyhow, anyhow::Result, bitcoincore_rpc::RpcApi, TestEnv};
119

1210
fn get_balance(
1311
recv_chain: &LocalChain,

crates/esplora/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ miniscript = { version = "11.0.0", optional = true, default-features = false }
2323

2424
[dev-dependencies]
2525
bdk_testenv = { path = "../testenv", default_features = false }
26-
electrsd = { version= "0.27.1", features = ["bitcoind_25_0", "esplora_a33e97e1", "legacy"] }
2726
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] }
28-
anyhow = "1"
2927

3028
[features]
3129
default = ["std", "async-https", "blocking-https-rustls"]

crates/esplora/src/async_ext.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,7 @@ mod test {
417417
local_chain::LocalChain,
418418
BlockId,
419419
};
420-
use bdk_testenv::TestEnv;
421-
use electrsd::bitcoind::bitcoincore_rpc::RpcApi;
420+
use bdk_testenv::{anyhow, bitcoincore_rpc::RpcApi, TestEnv};
422421
use esplora_client::Builder;
423422

424423
use crate::async_ext::{chain_update, fetch_latest_blocks};

crates/esplora/src/blocking_ext.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,7 @@ mod test {
407407
use bdk_chain::bitcoin::Txid;
408408
use bdk_chain::local_chain::LocalChain;
409409
use bdk_chain::BlockId;
410-
use bdk_testenv::TestEnv;
411-
use electrsd::bitcoind::bitcoincore_rpc::RpcApi;
410+
use bdk_testenv::{anyhow, bitcoincore_rpc::RpcApi, TestEnv};
412411
use esplora_client::{BlockHash, Builder};
413412
use std::collections::{BTreeMap, BTreeSet};
414413
use std::time::Duration;

crates/esplora/tests/async_ext.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
use bdk_chain::spk_client::{FullScanRequest, SyncRequest};
22
use bdk_esplora::EsploraAsyncExt;
3-
use electrsd::bitcoind::anyhow;
4-
use electrsd::bitcoind::bitcoincore_rpc::RpcApi;
53
use esplora_client::{self, Builder};
64
use std::collections::{BTreeSet, HashSet};
75
use std::str::FromStr;
86
use std::thread::sleep;
97
use std::time::Duration;
108

119
use bdk_chain::bitcoin::{Address, Amount, Txid};
12-
use bdk_testenv::TestEnv;
10+
use bdk_testenv::{anyhow, bitcoincore_rpc::RpcApi, TestEnv};
1311

1412
#[tokio::test]
1513
pub async fn test_update_tx_graph_without_keychain() -> anyhow::Result<()> {

crates/esplora/tests/blocking_ext.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
use bdk_chain::spk_client::{FullScanRequest, SyncRequest};
22
use bdk_esplora::EsploraExt;
3-
use electrsd::bitcoind::anyhow;
4-
use electrsd::bitcoind::bitcoincore_rpc::RpcApi;
53
use esplora_client::{self, Builder};
64
use std::collections::{BTreeSet, HashSet};
75
use std::str::FromStr;
86
use std::thread::sleep;
97
use std::time::Duration;
108

119
use bdk_chain::bitcoin::{Address, Amount, Txid};
12-
use bdk_testenv::TestEnv;
10+
use bdk_testenv::{anyhow, bitcoincore_rpc::RpcApi, TestEnv};
1311

1412
#[test]
1513
pub fn test_update_tx_graph_without_keychain() -> anyhow::Result<()> {

0 commit comments

Comments
 (0)