From 47d09e613d389f2361ce3cc370f90afb49031814 Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Thu, 14 Sep 2023 14:39:20 -0500 Subject: [PATCH] ci(esplora): fix wasm cargo check by setting workspace resolver to version 2 The resolver version must be set at the workspace level. See: https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#cargos-new-feature-resolver --- Cargo.toml | 1 + crates/esplora/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e818d89964..b20ef222d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,5 @@ [workspace] +resolver = "2" members = [ "crates/bdk", "crates/chain", diff --git a/crates/esplora/Cargo.toml b/crates/esplora/Cargo.toml index 49af68a991..0fffeda684 100644 --- a/crates/esplora/Cargo.toml +++ b/crates/esplora/Cargo.toml @@ -21,7 +21,7 @@ futures = { version = "0.3.26", optional = true } bitcoin = { version = "0.30.0", optional = true, default-features = false } miniscript = { version = "10.0.0", optional = true, default-features = false } -[dev-dependencies] +[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] electrsd = { version= "0.25.0", features = ["bitcoind_25_0", "esplora_a33e97e1", "legacy"] } tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] }