From: Steve Myers Date: Thu, 14 Sep 2023 19:39:20 +0000 (-0500) Subject: ci(esplora): fix wasm cargo check by setting workspace resolver to version 2 X-Git-Tag: v1.0.0-alpha.2~11^2~1 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.EncoderStringWriter.html?a=commitdiff_plain;h=d35668e76aa3ba429041305e54106c10429a8b1b;p=bdk 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 --- diff --git a/Cargo.toml b/Cargo.toml index e818d899..b20ef222 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 49af68a9..0fffeda6 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"] }