Skip to content

Commit b52cf0a

Browse files
feat: enable selecting use-rustls-ring feature on electrum client
1 parent 5c7cc30 commit b52cf0a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

crates/electrum/Cargo.toml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,18 @@ readme = "README.md"
1212
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1313

1414
[dependencies]
15-
bdk_chain = { path = "../chain", version = "0.16.0" }
16-
electrum-client = { version = "0.20" }
17-
#rustls = { version = "=0.21.1", optional = true, features = ["dangerous_configuration"] }
15+
# Keeping the path here breaks the build when using the fork as a dependency; remove once #135 is merged
16+
# and #1491 is ready to go in
17+
# bdk_chain = { path = "../chain", version = "0.16.0" }
18+
bdk_chain = { version = "0.16.0" }
19+
# Switch the lines below once https://github.com/bitcoindevkit/rust-electrum-client/pull/135 is merged and a new version is released
20+
# electrum-client = { version = "0.21", default-features = false }
21+
electrum-client = { git = "https://github.com/thunderbiscuit/rust-electrum-client/", branch = "feature/rustls-ring", default-features = false }
1822

1923
[dev-dependencies]
2024
bdk_testenv = { path = "../testenv", default-features = false }
25+
26+
[features]
27+
default = ["use-rustls"]
28+
use-rustls = ["electrum-client/proxy", "electrum-client/use-rustls"]
29+
use-rustls-ring = ["electrum-client/use-rustls-ring"]

0 commit comments

Comments
 (0)