mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
fix leon
& binstalk-downloader
bug relating to features (#1153)
- ci: Check feat powerset of leon & binstalk-downloader in `ci.yml` - fix leon feature `cli`: Enable dep `miette` in feature `cli` - fix binstalk-downloader when default feature is disabled and no other tls related feature is enabled (breaking change due to replace of `tls::Version` with newtype `TLSVersion`). Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
5c4a542de5
commit
40efe02e34
8 changed files with 111 additions and 65 deletions
|
@ -60,7 +60,13 @@ pkg-config = ["zstd/pkg-config"]
|
|||
|
||||
zlib-ng = ["flate2/zlib-ng"]
|
||||
|
||||
# Dummy feature, enabled if rustls or native-tls is enabled.
|
||||
# Used to avoid compilation error when no feature is enabled.
|
||||
__tls = []
|
||||
|
||||
rustls = [
|
||||
"__tls",
|
||||
|
||||
"reqwest/rustls-tls",
|
||||
|
||||
# Enable the following features only if trust-dns-resolver is enabled.
|
||||
|
@ -69,7 +75,7 @@ rustls = [
|
|||
"trust-dns-resolver?/dns-over-https-rustls",
|
||||
"trust-dns-resolver?/dns-over-quic",
|
||||
]
|
||||
native-tls = ["reqwest/native-tls", "trust-dns-resolver?/dns-over-native-tls"]
|
||||
native-tls = ["__tls", "reqwest/native-tls", "trust-dns-resolver?/dns-over-native-tls"]
|
||||
|
||||
# Enable trust-dns-resolver so that features on it will also be enabled.
|
||||
trust-dns = ["trust-dns-resolver", "reqwest/trust-dns"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue