File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ default = ["tls-rustls"]
3939cli = [" merge" , " clap" ]
4040merge = [" dep:merge" ]
4141clap = [" dep:clap" ]
42- # The tls-* features should be treated as mutually exclusive.
42+ # tls-native and tls-rustls are mutually exclusive.
4343tls-native = [" reqwest/native-tls" ]
4444tls-rustls = [" reqwest/rustls-tls-native-roots" ]
4545
Original file line number Diff line number Diff line change @@ -55,11 +55,11 @@ This crate exposes a few features for controlling dependency usage:
5555- ** clap** - Enables a dependency on the ` clap ` crate and enables parsing from
5656 the commandline. * This feature is disabled by default* .
5757- ** tls-native** - Builds with native TLS support (i.e. link against system TLS
58- library). This feature should be treated as mutually exclusive with
59- ` tls-rustls ` . * This features is disabled by default* .
58+ library). * This feature is mutually exclusive with ` tls-rustls ` and it is
59+ disabled by default* .
6060- ** tls-rustls** - Builds with Rustls support (i.e. with bundled TLS library).
61- This feature should be treated as mutually exclusive with ` tls-native ` . * This
62- feature is enabled by default* .
61+ * This feature is mutually exclusive with ` tls-native ` and it is enabled by
62+ default* .
6363
6464## Examples
6565
Original file line number Diff line number Diff line change @@ -139,6 +139,9 @@ This crate exposes a few features for controlling dependency usage.
139139#![ allow( rustdoc:: private_intra_doc_links) ]
140140#![ allow( clippy:: needless_raw_string_hashes) ]
141141
142+ #[ cfg( all( feature = "tls-native" , feature = "tls-rustls " ) ) ]
143+ compile_error ! ( "features \" tls-native\" and \" tls-rustls \" cannot be enabled at the same time. Please disable one of them." ) ;
144+
142145pub ( crate ) mod archiver;
143146pub ( crate ) mod backend;
144147pub ( crate ) mod blob;
You can’t perform that action at this time.
0 commit comments