From f7266d862a527c74b0e397197547ebb0daf0d7f6 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 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/crates/electrum/Cargo.toml b/crates/electrum/Cargo.toml index bdcdf4b93..a38227dae 100644 --- a/crates/electrum/Cargo.toml +++ b/crates/electrum/Cargo.toml @@ -12,9 +12,18 @@ readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +# Keeping the path here breaks the build when using the fork as a dependency; remove once #135 is merged +# and #1491 is ready to go in bdk_chain = { path = "../chain", version = "0.17.0" } -electrum-client = { version = "0.20" } -#rustls = { version = "=0.21.1", optional = true, features = ["dangerous_configuration"] } +# bdk_chain = { version = "0.17.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] +default = ["use-rustls"] +use-rustls = ["electrum-client/proxy", "electrum-client/use-rustls"] +use-rustls-ring = ["electrum-client/use-rustls-ring"]