@@ -116,9 +116,9 @@ struct Config {
116
116
root_certs : Vec < Certificate > ,
117
117
#[ cfg( feature = "__tls" ) ]
118
118
tls_built_in_root_certs : bool ,
119
- #[ cfg( feature = "rustls-tls-webpki-roots" ) ]
119
+ #[ cfg( feature = "rustls-tls-webpki-roots-no-provider " ) ]
120
120
tls_built_in_certs_webpki : bool ,
121
- #[ cfg( feature = "rustls-tls-native-roots" ) ]
121
+ #[ cfg( feature = "rustls-tls-native-roots-no-provider " ) ]
122
122
tls_built_in_certs_native : bool ,
123
123
#[ cfg( feature = "__rustls" ) ]
124
124
crls : Vec < CertificateRevocationList > ,
@@ -215,9 +215,9 @@ impl ClientBuilder {
215
215
root_certs : Vec :: new ( ) ,
216
216
#[ cfg( feature = "__tls" ) ]
217
217
tls_built_in_root_certs : true ,
218
- #[ cfg( feature = "rustls-tls-webpki-roots" ) ]
218
+ #[ cfg( feature = "rustls-tls-webpki-roots-no-provider " ) ]
219
219
tls_built_in_certs_webpki : true ,
220
- #[ cfg( feature = "rustls-tls-native-roots" ) ]
220
+ #[ cfg( feature = "rustls-tls-native-roots-no-provider " ) ]
221
221
tls_built_in_certs_native : true ,
222
222
#[ cfg( any( feature = "native-tls" , feature = "__rustls" ) ) ]
223
223
identity : None ,
@@ -511,12 +511,12 @@ impl ClientBuilder {
511
511
cert. add_to_rustls ( & mut root_cert_store) ?;
512
512
}
513
513
514
- #[ cfg( feature = "rustls-tls-webpki-roots" ) ]
514
+ #[ cfg( feature = "rustls-tls-webpki-roots-no-provider " ) ]
515
515
if config. tls_built_in_certs_webpki {
516
516
root_cert_store. extend ( webpki_roots:: TLS_SERVER_ROOTS . iter ( ) . cloned ( ) ) ;
517
517
}
518
518
519
- #[ cfg( feature = "rustls-tls-native-roots" ) ]
519
+ #[ cfg( feature = "rustls-tls-native-roots-no-provider " ) ]
520
520
if config. tls_built_in_certs_native {
521
521
let mut valid_count = 0 ;
522
522
let mut invalid_count = 0 ;
@@ -1490,12 +1490,12 @@ impl ClientBuilder {
1490
1490
pub fn tls_built_in_root_certs ( mut self , tls_built_in_root_certs : bool ) -> ClientBuilder {
1491
1491
self . config . tls_built_in_root_certs = tls_built_in_root_certs;
1492
1492
1493
- #[ cfg( feature = "rustls-tls-webpki-roots" ) ]
1493
+ #[ cfg( feature = "rustls-tls-webpki-roots-no-provider " ) ]
1494
1494
{
1495
1495
self . config . tls_built_in_certs_webpki = tls_built_in_root_certs;
1496
1496
}
1497
1497
1498
- #[ cfg( feature = "rustls-tls-native-roots" ) ]
1498
+ #[ cfg( feature = "rustls-tls-native-roots-no-provider " ) ]
1499
1499
{
1500
1500
self . config . tls_built_in_certs_native = tls_built_in_root_certs;
1501
1501
}
@@ -1506,8 +1506,8 @@ impl ClientBuilder {
1506
1506
/// Sets whether to load webpki root certs with rustls.
1507
1507
///
1508
1508
/// 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 " ) ) ) ]
1511
1511
pub fn tls_built_in_webpki_certs ( mut self , enabled : bool ) -> ClientBuilder {
1512
1512
self . config . tls_built_in_certs_webpki = enabled;
1513
1513
self
@@ -1516,8 +1516,8 @@ impl ClientBuilder {
1516
1516
/// Sets whether to load native root certs with rustls.
1517
1517
///
1518
1518
/// 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 " ) ) ) ]
1521
1521
pub fn tls_built_in_native_certs ( mut self , enabled : bool ) -> ClientBuilder {
1522
1522
self . config . tls_built_in_certs_native = enabled;
1523
1523
self
0 commit comments