11use  std:: collections:: HashMap ; 
2- #[ cfg( feature = "push-gateway" ) ]  
2+ #[ cfg( any ( feature = "push-gateway" ,  feature =  "push-gateway-no-tls-provider" ) ) ]  
33use  std:: convert:: TryFrom ; 
44#[ cfg( feature = "http-listener" ) ]  
55use  std:: net:: { IpAddr ,  Ipv4Addr ,  SocketAddr } ; 
66use  std:: num:: NonZeroU32 ; 
77use  std:: sync:: RwLock ; 
8- #[ cfg( any( feature = "http-listener" ,  feature = "push-gateway" ) ) ]  
8+ #[ cfg( any( feature = "http-listener" ,  feature = "push-gateway" ,  feature =  "push-gateway-no-tls-provider" ) ) ]  
99use  std:: thread; 
1010use  std:: time:: Duration ; 
1111
12- #[ cfg( feature = "push-gateway" ) ]  
12+ #[ cfg( any ( feature = "push-gateway" ,  feature =  "push-gateway-no-tls-provider" ) ) ]  
1313use  hyper:: Uri ; 
1414use  indexmap:: IndexMap ; 
1515#[ cfg( feature = "http-listener" ) ]  
@@ -29,13 +29,13 @@ use crate::registry::AtomicStorage;
2929use  crate :: { common:: BuildError ,  PrometheusHandle } ; 
3030
3131use  super :: ExporterConfig ; 
32- #[ cfg( any( feature = "http-listener" ,  feature = "push-gateway" ) ) ]  
32+ #[ cfg( any( feature = "http-listener" ,  feature = "push-gateway" ,  feature =  "push-gateway-no-tls-provider" ) ) ]  
3333use  super :: ExporterFuture ; 
3434
3535/// Builder for creating and installing a Prometheus recorder/exporter. 
3636#[ derive( Debug ) ]  
3737pub  struct  PrometheusBuilder  { 
38-     #[ cfg_attr( not( any( feature = "http-listener" ,  feature = "push-gateway" ) ) ,  allow( dead_code) ) ]  
38+     #[ cfg_attr( not( any( feature = "http-listener" ,  feature = "push-gateway" ,  feature =  "push-gateway-no-tls-provider" ) ) ,  allow( dead_code) ) ]  
3939    exporter_config :  ExporterConfig , 
4040    #[ cfg( feature = "http-listener" ) ]  
4141    allowed_addresses :  Option < Vec < IpNet > > , 
@@ -120,8 +120,8 @@ impl PrometheusBuilder {
120120/// If the given endpoint cannot be parsed into a valid URI, an error variant will be returned describing the error. 
121121/// 
122122/// [push gateway]: https://prometheus.io/docs/instrumenting/pushing/ 
123- #[ cfg( feature = "push-gateway" ) ]  
124-     #[ cfg_attr( docsrs,  doc( cfg( feature = "push-gateway" ) ) ) ]  
123+ #[ cfg( any ( feature = "push-gateway" ,  feature =  "push-gateway-no-tls-provider" ) ) ]  
124+     #[ cfg_attr( docsrs,  doc( cfg( any ( feature = "push-gateway" ,  feature =  "push-gateway-no-tls-provider" ) ) ) ) ]  
125125    pub  fn  with_push_gateway < T > ( 
126126        mut  self , 
127127        endpoint :  T , 
@@ -399,8 +399,8 @@ impl PrometheusBuilder {
399399/// 
400400/// If there is an error while either building the recorder and exporter, or installing the recorder and exporter, 
401401/// an error variant will be returned describing the error. 
402- #[ cfg( any( feature = "http-listener" ,  feature = "push-gateway" ) ) ]  
403-     #[ cfg_attr( docsrs,  doc( cfg( any( feature = "http-listener" ,  feature = "push-gateway" ) ) ) ) ]  
402+ #[ cfg( any( feature = "http-listener" ,  feature = "push-gateway" ,  feature =  "push-gateway-no-tls-provider" ) ) ]  
403+     #[ cfg_attr( docsrs,  doc( cfg( any( feature = "http-listener" ,  feature = "push-gateway" ,  feature =  "push-gateway-no-tls-provider" ) ) ) ) ]  
404404    pub  fn  install ( self )  -> Result < ( ) ,  BuildError >  { 
405405        use  tokio:: runtime; 
406406
@@ -476,8 +476,8 @@ impl PrometheusBuilder {
476476/// If there is an error while building the recorder and exporter, an error variant will be returned describing the 
477477/// error. 
478478#[ warn( clippy:: too_many_lines) ]  
479-     #[ cfg( any( feature = "http-listener" ,  feature = "push-gateway" ) ) ]  
480-     #[ cfg_attr( docsrs,  doc( cfg( any( feature = "http-listener" ,  feature = "push-gateway" ) ) ) ) ]  
479+     #[ cfg( any( feature = "http-listener" ,  feature = "push-gateway" ,  feature =  "push-gateway-no-tls-provider" ) ) ]  
480+     #[ cfg_attr( docsrs,  doc( cfg( any( feature = "http-listener" ,  feature = "push-gateway" ,  feature =  "push-gateway-no-tls-provider" ) ) ) ) ]  
481481    #[ cfg_attr( not( feature = "http-listener" ) ,  allow( unused_mut) ) ]  
482482    pub  fn  build ( mut  self )  -> Result < ( PrometheusRecorder ,  ExporterFuture ) ,  BuildError >  { 
483483        #[ cfg( feature = "http-listener" ) ]  
@@ -516,7 +516,7 @@ impl PrometheusBuilder {
516516                    } 
517517                } , 
518518
519-                 #[ cfg( feature = "push-gateway" ) ]  
519+                 #[ cfg( any ( feature = "push-gateway" ,  feature =  "push-gateway-no-tls-provider" ) ) ]  
520520                ExporterConfig :: PushGateway  { 
521521                    endpoint, 
522522                    interval, 
0 commit comments