@@ -23,11 +23,7 @@ use bitcoin::{Script, Txid};
2323use openssl:: ssl:: { SslConnector , SslMethod , SslStream , SslVerifyMode } ;
2424
2525#[ cfg( all(
26- any(
27- feature = "default" ,
28- feature = "use-rustls" ,
29- feature = "use-rustls-ring"
30- ) ,
26+ any( feature = "use-rustls" , feature = "use-rustls-ring" ) ,
3127 not( feature = "use-openssl" )
3228) ) ]
3329use rustls:: {
@@ -36,7 +32,7 @@ use rustls::{
3632 ClientConfig , ClientConnection , RootCertStore , StreamOwned ,
3733} ;
3834
39- #[ cfg( any ( feature = "default" , feature = " proxy") ) ]
35+ #[ cfg( feature = "proxy" ) ]
4036use crate :: socks:: { Socks5Stream , TargetAddr , ToTargetAddr } ;
4137
4238use crate :: stream:: ClonableStream ;
@@ -93,7 +89,7 @@ impl ToSocketAddrsDomain for (&str, u16) {
9389 }
9490}
9591
96- #[ cfg( any ( feature = "default" , feature = " proxy") ) ]
92+ #[ cfg( feature = "proxy" ) ]
9793impl ToSocketAddrsDomain for TargetAddr {
9894 fn domain ( & self ) -> Option < & str > {
9995 match self {
@@ -290,11 +286,7 @@ impl RawClient<ElectrumSslStream> {
290286}
291287
292288#[ cfg( all(
293- any(
294- feature = "default" ,
295- feature = "use-rustls" ,
296- feature = "use-rustls-ring"
297- ) ,
289+ any( feature = "use-rustls" , feature = "use-rustls-ring" ) ,
298290 not( feature = "use-openssl" )
299291) ) ]
300292mod danger {
@@ -350,21 +342,13 @@ mod danger {
350342}
351343
352344#[ cfg( all(
353- any(
354- feature = "default" ,
355- feature = "use-rustls" ,
356- feature = "use-rustls-ring"
357- ) ,
345+ any( feature = "use-rustls" , feature = "use-rustls-ring" ) ,
358346 not( feature = "use-openssl" )
359347) ) ]
360348/// Transport type used to establish a Rustls TLS encrypted/authenticated connection with the server
361349pub type ElectrumSslStream = StreamOwned < ClientConnection , TcpStream > ;
362350#[ cfg( all(
363- any(
364- feature = "default" ,
365- feature = "use-rustls" ,
366- feature = "use-rustls-ring"
367- ) ,
351+ any( feature = "use-rustls" , feature = "use-rustls-ring" ) ,
368352 not( feature = "use-openssl" )
369353) ) ]
370354impl RawClient < ElectrumSslStream > {
0 commit comments