@@ -23,7 +23,7 @@ use bitcoin::{Script, Txid};
2323use  openssl:: ssl:: { SslConnector ,  SslMethod ,  SslStream ,  SslVerifyMode } ; 
2424
2525#[ cfg( all(  
26-     any( feature = "default" ,  feature = "use-rustls" ) ,  
26+     any( feature = "default" ,  feature = "use-rustls" ,  feature =  "use-rustls-ring" ) ,  
2727    not( feature = "use-openssl" )  
2828) ) ] 
2929use  rustls:: { 
@@ -286,7 +286,7 @@ impl RawClient<ElectrumSslStream> {
286286} 
287287
288288#[ cfg( all(  
289-     any( feature = "default" ,  feature = "use-rustls" ) ,  
289+     any( feature = "default" ,  feature = "use-rustls" ,  feature =  "use-rustls-ring" ) ,  
290290    not( feature = "use-openssl" )  
291291) ) ] 
292292mod  danger { 
@@ -336,13 +336,13 @@ mod danger {
336336} 
337337
338338#[ cfg( all(  
339-     any( feature = "default" ,  feature = "use-rustls" ) ,  
339+     any( feature = "default" ,  feature = "use-rustls" ,  feature =  "use-rustls-ring" ) ,  
340340    not( feature = "use-openssl" )  
341341) ) ] 
342342/// Transport type used to establish a Rustls TLS encrypted/authenticated connection with the server 
343343pub  type  ElectrumSslStream  = StreamOwned < ClientConnection ,  TcpStream > ; 
344344#[ cfg( all(  
345-     any( feature = "default" ,  feature = "use-rustls" ) ,  
345+     any( feature = "default" ,  feature = "use-rustls" ,  feature =  "use-rustls-ring" ) ,  
346346    not( feature = "use-openssl" )  
347347) ) ] 
348348impl  RawClient < ElectrumSslStream >  { 
@@ -451,7 +451,7 @@ impl RawClient<ElectrumProxyStream> {
451451        Ok ( stream. into ( ) ) 
452452    } 
453453
454-     #[ cfg( any( feature = "use-openssl" ,  feature = "use-rustls" ) ) ]  
454+     #[ cfg( any( feature = "use-openssl" ,  feature = "use-rustls" ,  feature =  "use-rustls-ring" ) ) ]  
455455    /// Creates a new TLS client that connects to `target_addr` using `proxy_addr` as a socks proxy 
456456     /// server. The DNS resolution of `target_addr`, if required, is done through the proxy. This 
457457     /// allows to specify, for instance, `.onion` addresses. 
0 commit comments