File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ webpki = { version = "0.21.0", optional = true }
3030webpki-roots = { version = " ^0.19" , optional = true }
3131
3232[features ]
33- default = [" socks " , " webpki " , " webpki-roots " , " rustls" ]
33+ default = [" proxy " , " use- rustls" ]
3434minimal = []
3535debug-calls = []
3636proxy = [" socks" ]
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ use types::*;
1111/// [`RawClient`](client/struct.RawClient.html) and provides a more user-friendly
1212/// constructor that can choose the right backend based on the url prefix.
1313///
14- /// **This is only available with the `default` features.**
15- #[ cfg( feature = "default" ) ]
14+ /// **This is available only with the `default` features, or if `proxy` and one ssl implementation are enabled**
1615pub enum Client {
1716 #[ doc( hidden) ]
1817 TCP ( RawClient < ElectrumPlaintextStream > ) ,
@@ -32,7 +31,6 @@ macro_rules! impl_inner_call {
3231 }
3332}
3433
35- #[ cfg( feature = "default" ) ]
3634impl Client {
3735 /// Generic constructor that supports multiple backends and, optionally, a socks5 proxy.
3836 ///
@@ -70,7 +68,6 @@ impl Client {
7068 }
7169}
7270
73- #[ cfg( feature = "default" ) ]
7471impl ElectrumApi for Client {
7572 #[ inline]
7673 fn batch_call ( & self , batch : Batch ) -> Result < Vec < serde_json:: Value > , Error > {
Original file line number Diff line number Diff line change @@ -40,7 +40,13 @@ extern crate webpki_roots;
4040
4141mod api;
4242mod batch;
43+
44+ #[ cfg( any(
45+ all( feature = "proxy" , feature = "use-openssl" ) ,
46+ all( feature = "proxy" , feature = "use-rustls" )
47+ ) ) ]
4348pub mod client;
49+
4450pub mod raw_client;
4551mod stream;
4652mod types;
You can’t perform that action at this time.
0 commit comments