]> Untitled Git - bdk/commitdiff
feat: enable selecting use-rustls-ring feature on electrum client
authorthunderbiscuit <thunderbiscuit@protonmail.com>
Wed, 26 Jun 2024 14:52:57 +0000 (10:52 -0400)
committerthunderbiscuit <thunderbiscuit@protonmail.com>
Mon, 12 Aug 2024 18:52:55 +0000 (14:52 -0400)
crates/electrum/Cargo.toml

index bdcdf4b931b34ea329015363a59eccfab63b4b58..eff11daac66a418e170fef6bc31e00455e9df5c2 100644 (file)
@@ -9,12 +9,14 @@ description = "Fetch data from electrum in the form BDK accepts"
 license = "MIT OR Apache-2.0"
 readme = "README.md"
 
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
-
 [dependencies]
 bdk_chain = { path = "../chain", version = "0.17.0" }
-electrum-client = { version = "0.20" }
-#rustls = { version = "=0.21.1", optional = true, features = ["dangerous_configuration"] }
+electrum-client = { version = "0.21", features = ["proxy"], default-features = false }
 
 [dev-dependencies]
 bdk_testenv = { path = "../testenv", default-features = false }
+
+[features]
+default = ["use-rustls"]
+use-rustls = ["electrum-client/use-rustls"]
+use-rustls-ring = ["electrum-client/use-rustls-ring"]