]> Untitled Git - bdk/commitdiff
ci(esplora): fix wasm cargo check by setting workspace resolver to version 2
authorSteve Myers <steve@notmandatory.org>
Thu, 14 Sep 2023 19:39:20 +0000 (14:39 -0500)
committerSteve Myers <steve@notmandatory.org>
Tue, 26 Sep 2023 02:09:45 +0000 (21:09 -0500)
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
crates/esplora/Cargo.toml

index e818d899641437585a6896491027bdaafa1f1160..b20ef222d77814dbae9d7f7ff40206397b39a4e8 100644 (file)
@@ -1,4 +1,5 @@
 [workspace]
+resolver = "2"
 members = [
     "crates/bdk",
     "crates/chain",
index 49af68a991b28c55d803c86bab38400ee4885286..0fffeda684a5f01f0d695693b7cc8fb14c0673d4 100644 (file)
@@ -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"] }