]> Untitled Git - bdk/commitdiff
fix(bdk_electrum): build with `--no-default-features`
authorLeonardo Lima <oleonardolima@users.noreply.github.com>
Mon, 16 Sep 2024 15:54:36 +0000 (12:54 -0300)
committerLeonardo Lima <oleonardolima@users.noreply.github.com>
Fri, 20 Sep 2024 00:47:50 +0000 (21:47 -0300)
- add `use-rustls` as required features for `test_electrum.rs`, using
  the `[[test]]` cargo target approach.

crates/electrum/Cargo.toml

index f2529dc2da85793bb84ceb107684e3523968ae9e..1770c90c7e1a128a007d15b3b2a5a5adeef0716f 100644 (file)
@@ -24,3 +24,8 @@ bdk_chain = { path = "../chain" }
 default = ["use-rustls"]
 use-rustls = ["electrum-client/use-rustls"]
 use-rustls-ring = ["electrum-client/use-rustls-ring"]
+
+[[test]]
+name = "use-rustls"
+path = "tests/test_electrum.rs"
+required-features = ["use-rustls"]