Skip to content

Commit 84fd91e

Browse files
committed
Expose additional TLS backends for electrum-client via features
Recently, `rustls` introduced a new default crypto provider in `aws-lc-rc`. Since there have been reports on this new provider not building properly on certain platforms `electrum-client` introduced additional features allowing the user to configure what backend to use for TLS. Here, we simply re-expose these features to our users, which also mirrors what we do for Esplora already.
1 parent 14da3cb commit 84fd91e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lightning-transaction-sync/Cargo.toml

+7-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ time = []
1919
esplora-async = ["async-interface", "esplora-client/async", "esplora-client/tokio", "futures"]
2020
esplora-async-https = ["esplora-async", "esplora-client/async-https-rustls"]
2121
esplora-blocking = ["esplora-client/blocking"]
22-
electrum = ["electrum-client"]
22+
# As of v0.22, electrum-client's `proxy` feature is still defacto mandatory,
23+
# see https://github.com/bitcoindevkit/rust-electrum-client/issues/91
24+
electrum = ["electrum-client", "electrum-client/proxy"]
25+
electrum-rustls = ["electrum", "electrum-client/use-rustls"]
26+
electrum-rustls-ring = ["electrum", "electrum-client/use-rustls-ring"]
27+
electrum-openssl = ["electrum", "electrum-client/use-openssl"]
2328
async-interface = []
2429

2530
[dependencies]
@@ -28,7 +33,7 @@ lightning-macros = { version = "0.1", path = "../lightning-macros", default-feat
2833
bitcoin = { version = "0.32.2", default-features = false }
2934
futures = { version = "0.3", optional = true }
3035
esplora-client = { version = "0.11", default-features = false, optional = true }
31-
electrum-client = { version = "0.22.0", optional = true }
36+
electrum-client = { version = "0.22.0", optional = true, default-features = false }
3237

3338
[dev-dependencies]
3439
lightning = { version = "0.2.0", path = "../lightning", default-features = false, features = ["std", "_test_utils"] }

0 commit comments

Comments
 (0)