bdk_core = { path = "../core", version = "0.6.1", default-features = false }
[dev-dependencies]
+anyhow = "1"
bdk_bitcoind_rpc = { path = "." }
-bdk_testenv = { path = "../testenv" }
bdk_chain = { path = "../chain" }
+# electrsd's build script (via bdk_testenv) doesn't compile on Windows. Drop this gate, and the
+# tests' `cfg(not(windows))`, once it does.
+[target.'cfg(not(windows))'.dev-dependencies]
+bdk_testenv = { path = "../testenv" }
+
[features]
default = ["std"]
std = ["bitcoin/std", "bdk_core/std"]
use bdk_chain::local_chain::LocalChain;
use bdk_chain::miniscript::Descriptor;
use bdk_chain::{ConfirmationBlockTime, IndexedTxGraph, SpkIterator};
-use bdk_testenv::anyhow;
// This example shows how BDK chain and tx-graph structures are updated using compact
// filters syncing. Assumes a connection can be made to a bitcoin node via environment
}
}
-#[cfg(test)]
+#[cfg(all(test, not(windows)))]
#[cfg_attr(coverage_nightly, coverage(off))]
mod test {
use crate::{Emitter, NO_EXPECTED_MEMPOOL_TXS};
+#![cfg(not(windows))]
+
use std::{collections::BTreeSet, ops::Deref};
use bdk_bitcoind_rpc::{Emitter, NO_EXPECTED_MEMPOOL_TXS};
+#![cfg(not(windows))]
+
use bdk_bitcoind_rpc::bip158::{Error, FilterIter};
use bdk_core::CheckPoint;
use bdk_testenv::{anyhow, bitcoind, TestEnv};