From 0fda8c1bc6f84266931c73e27ee61a02627aea99 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 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/crates/electrum/Cargo.toml b/crates/electrum/Cargo.toml index 4e3d4f3a23..2d1e599f23 100644 --- a/crates/electrum/Cargo.toml +++ b/crates/electrum/Cargo.toml @@ -12,9 +12,14 @@ 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.16.0" } -electrum-client = { version = "0.20" } -#rustls = { version = "=0.21.1", optional = true, features = ["dangerous_configuration"] } + bdk_chain = { path = "../chain", version = "0.16.0" } +# Switch the lines below once https://github.com/bitcoindevkit/rust-electrum-client/pull/135 is merged and a new version is released +# electrum-client = { version = "0.21", default-features = false } +electrum-client = { git = "https://github.com/thunderbiscuit/rust-electrum-client/", branch = "feature/rustls-ring", default-features = false } [dev-dependencies] bdk_testenv = { path = "../testenv", default-features = false } + +[features] +use-rustls = ["electrum-client/use-rustls"] +use-rustls-ring = ["electrum-client/use-rustls-ring"]