Skip to content

Commit 32426bb

Browse files
feat: enable selecting use-rustls-ring feature on electrum client
1 parent 82141a8 commit 32426bb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

crates/electrum/Cargo.toml

+8-4
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@ description = "Fetch data from electrum in the form BDK accepts"
99
license = "MIT OR Apache-2.0"
1010
readme = "README.md"
1111

12-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
13-
1412
[dependencies]
1513
bdk_chain = { path = "../chain", version = "0.17.0" }
16-
electrum-client = { version = "0.20" }
17-
#rustls = { version = "=0.21.1", optional = true, features = ["dangerous_configuration"] }
14+
# Switch the lines below once a new version is released
15+
# electrum-client = { version = "0.21", default-features = false }
16+
electrum-client = { git = "https://github.com/bitcoindevkit/rust-electrum-client/", branch = "master", default-features = false }
1817

1918
[dev-dependencies]
2019
bdk_testenv = { path = "../testenv", default-features = false }
20+
21+
[features]
22+
default = ["use-rustls"]
23+
use-rustls = ["electrum-client/proxy", "electrum-client/use-rustls"]
24+
use-rustls-ring = ["electrum-client/use-rustls-ring"]

0 commit comments

Comments
 (0)