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"]