@@ -116,9 +116,9 @@ struct Config {
116116 root_certs : Vec < Certificate > ,
117117 #[ cfg( feature = "__tls" ) ]
118118 tls_built_in_root_certs : bool ,
119- #[ cfg( feature = "rustls-tls-webpki-roots" ) ]
119+ #[ cfg( feature = "rustls-tls-webpki-roots-no-provider " ) ]
120120 tls_built_in_certs_webpki : bool ,
121- #[ cfg( feature = "rustls-tls-native-roots" ) ]
121+ #[ cfg( feature = "rustls-tls-native-roots-no-provider " ) ]
122122 tls_built_in_certs_native : bool ,
123123 #[ cfg( feature = "__rustls" ) ]
124124 crls : Vec < CertificateRevocationList > ,
@@ -215,9 +215,9 @@ impl ClientBuilder {
215215 root_certs : Vec :: new ( ) ,
216216 #[ cfg( feature = "__tls" ) ]
217217 tls_built_in_root_certs : true ,
218- #[ cfg( feature = "rustls-tls-webpki-roots" ) ]
218+ #[ cfg( feature = "rustls-tls-webpki-roots-no-provider " ) ]
219219 tls_built_in_certs_webpki : true ,
220- #[ cfg( feature = "rustls-tls-native-roots" ) ]
220+ #[ cfg( feature = "rustls-tls-native-roots-no-provider " ) ]
221221 tls_built_in_certs_native : true ,
222222 #[ cfg( any( feature = "native-tls" , feature = "__rustls" ) ) ]
223223 identity : None ,
@@ -511,12 +511,12 @@ impl ClientBuilder {
511511 cert. add_to_rustls ( & mut root_cert_store) ?;
512512 }
513513
514- #[ cfg( feature = "rustls-tls-webpki-roots" ) ]
514+ #[ cfg( feature = "rustls-tls-webpki-roots-no-provider " ) ]
515515 if config. tls_built_in_certs_webpki {
516516 root_cert_store. extend ( webpki_roots:: TLS_SERVER_ROOTS . iter ( ) . cloned ( ) ) ;
517517 }
518518
519- #[ cfg( feature = "rustls-tls-native-roots" ) ]
519+ #[ cfg( feature = "rustls-tls-native-roots-no-provider " ) ]
520520 if config. tls_built_in_certs_native {
521521 let mut valid_count = 0 ;
522522 let mut invalid_count = 0 ;
@@ -1490,12 +1490,12 @@ impl ClientBuilder {
14901490 pub fn tls_built_in_root_certs ( mut self , tls_built_in_root_certs : bool ) -> ClientBuilder {
14911491 self . config . tls_built_in_root_certs = tls_built_in_root_certs;
14921492
1493- #[ cfg( feature = "rustls-tls-webpki-roots" ) ]
1493+ #[ cfg( feature = "rustls-tls-webpki-roots-no-provider " ) ]
14941494 {
14951495 self . config . tls_built_in_certs_webpki = tls_built_in_root_certs;
14961496 }
14971497
1498- #[ cfg( feature = "rustls-tls-native-roots" ) ]
1498+ #[ cfg( feature = "rustls-tls-native-roots-no-provider " ) ]
14991499 {
15001500 self . config . tls_built_in_certs_native = tls_built_in_root_certs;
15011501 }
@@ -1506,8 +1506,8 @@ impl ClientBuilder {
15061506 /// Sets whether to load webpki root certs with rustls.
15071507 ///
15081508 /// If the feature is enabled, this value is `true` by default.
1509- #[ cfg( feature = "rustls-tls-webpki-roots" ) ]
1510- #[ cfg_attr( docsrs, doc( cfg( feature = "rustls-tls-webpki-roots" ) ) ) ]
1509+ #[ cfg( feature = "rustls-tls-webpki-roots-no-provider " ) ]
1510+ #[ cfg_attr( docsrs, doc( cfg( feature = "rustls-tls-webpki-roots-no-provider " ) ) ) ]
15111511 pub fn tls_built_in_webpki_certs ( mut self , enabled : bool ) -> ClientBuilder {
15121512 self . config . tls_built_in_certs_webpki = enabled;
15131513 self
@@ -1516,8 +1516,8 @@ impl ClientBuilder {
15161516 /// Sets whether to load native root certs with rustls.
15171517 ///
15181518 /// If the feature is enabled, this value is `true` by default.
1519- #[ cfg( feature = "rustls-tls-native-roots" ) ]
1520- #[ cfg_attr( docsrs, doc( cfg( feature = "rustls-tls-native-roots" ) ) ) ]
1519+ #[ cfg( feature = "rustls-tls-native-roots-no-provider " ) ]
1520+ #[ cfg_attr( docsrs, doc( cfg( feature = "rustls-tls-native-roots-no-provider " ) ) ) ]
15211521 pub fn tls_built_in_native_certs ( mut self , enabled : bool ) -> ClientBuilder {
15221522 self . config . tls_built_in_certs_native = enabled;
15231523 self
0 commit comments