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 }
30
30
webpki-roots = { version = " ^0.19" , optional = true }
31
31
32
32
[features ]
33
- default = [" socks " , " webpki " , " webpki-roots " , " rustls" ]
33
+ default = [" proxy " , " use- rustls" ]
34
34
minimal = []
35
35
debug-calls = []
36
36
proxy = [" socks" ]
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ use types::*;
11
11
/// [`RawClient`](client/struct.RawClient.html) and provides a more user-friendly
12
12
/// constructor that can choose the right backend based on the url prefix.
13
13
///
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**
16
15
pub enum Client {
17
16
#[ doc( hidden) ]
18
17
TCP ( RawClient < ElectrumPlaintextStream > ) ,
@@ -32,7 +31,6 @@ macro_rules! impl_inner_call {
32
31
}
33
32
}
34
33
35
- #[ cfg( feature = "default" ) ]
36
34
impl Client {
37
35
/// Generic constructor that supports multiple backends and, optionally, a socks5 proxy.
38
36
///
@@ -70,7 +68,6 @@ impl Client {
70
68
}
71
69
}
72
70
73
- #[ cfg( feature = "default" ) ]
74
71
impl ElectrumApi for Client {
75
72
#[ inline]
76
73
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;
40
40
41
41
mod api;
42
42
mod batch;
43
+
44
+ #[ cfg( any(
45
+ all( feature = "proxy" , feature = "use-openssl" ) ,
46
+ all( feature = "proxy" , feature = "use-rustls" )
47
+ ) ) ]
43
48
pub mod client;
49
+
44
50
pub mod raw_client;
45
51
mod stream;
46
52
mod types;
You can’t perform that action at this time.
0 commit comments