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"]
39
39
cli = [" merge" , " clap" ]
40
40
merge = [" dep:merge" ]
41
41
clap = [" dep:clap" ]
42
- # The tls-* features should be treated as mutually exclusive.
42
+ # tls-native and tls-rustls are mutually exclusive.
43
43
tls-native = [" reqwest/native-tls" ]
44
44
tls-rustls = [" reqwest/rustls-tls-native-roots" ]
45
45
Original file line number Diff line number Diff line change @@ -55,11 +55,11 @@ This crate exposes a few features for controlling dependency usage:
55
55
- ** clap** - Enables a dependency on the ` clap ` crate and enables parsing from
56
56
the commandline. * This feature is disabled by default* .
57
57
- ** 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* .
60
60
- ** 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* .
63
63
64
64
## Examples
65
65
Original file line number Diff line number Diff line change @@ -139,6 +139,9 @@ This crate exposes a few features for controlling dependency usage.
139
139
#![ allow( rustdoc:: private_intra_doc_links) ]
140
140
#![ allow( clippy:: needless_raw_string_hashes) ]
141
141
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
+
142
145
pub ( crate ) mod archiver;
143
146
pub ( crate ) mod backend;
144
147
pub ( crate ) mod blob;
You can’t perform that action at this time.
0 commit comments