From 6e8f19607aff55b1949fc7e9f943a333b4fcfb8a Mon Sep 17 00:00:00 2001 From: Leonardo Lima Date: Mon, 16 Sep 2024 12:54:36 -0300 Subject: [PATCH] fix(bdk_electrum): build with `--no-default-features` - add `use-rustls` as required features for `test_electrum.rs`, using the `[[test]]` cargo target approach. --- crates/electrum/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/electrum/Cargo.toml b/crates/electrum/Cargo.toml index f2529dc2..1770c90c 100644 --- a/crates/electrum/Cargo.toml +++ b/crates/electrum/Cargo.toml @@ -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"] -- 2.49.0