From f965f95721c719ac755da07aa997d9b858583856 Mon Sep 17 00:00:00 2001 From: thunderbiscuit Date: Wed, 26 Jun 2024 10:52:57 -0400 Subject: [PATCH] feat: enable selecting use-rustls-ring feature on electrum client --- crates/electrum/Cargo.toml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/crates/electrum/Cargo.toml b/crates/electrum/Cargo.toml index bdcdf4b93..eff11daac 100644 --- a/crates/electrum/Cargo.toml +++ b/crates/electrum/Cargo.toml @@ -9,12 +9,14 @@ description = "Fetch data from electrum in the form BDK accepts" license = "MIT OR Apache-2.0" readme = "README.md" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] bdk_chain = { path = "../chain", version = "0.17.0" } -electrum-client = { version = "0.20" } -#rustls = { version = "=0.21.1", optional = true, features = ["dangerous_configuration"] } +electrum-client = { version = "0.21", features = ["proxy"], default-features = false } [dev-dependencies] bdk_testenv = { path = "../testenv", default-features = false } + +[features] +default = ["use-rustls"] +use-rustls = ["electrum-client/use-rustls"] +use-rustls-ring = ["electrum-client/use-rustls-ring"]