mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Enable vendored native-tls if native-tls and static is enabled (#1832)
Fixed #1694 Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
3f29fbe83a
commit
53f342ab1c
2 changed files with 19 additions and 1 deletions
|
@ -76,10 +76,16 @@ xz2 = "0.1.7"
|
|||
# Otherwise there will be a link conflict.
|
||||
zstd = { version = "0.13.2", default-features = false }
|
||||
|
||||
[target."cfg(not(target_arch = \"wasm32\"))".dependencies.native-tls-crate]
|
||||
optional = true
|
||||
package = "native-tls"
|
||||
# The version must be kept in sync of reqwest
|
||||
version = "0.2.10"
|
||||
|
||||
[features]
|
||||
default = ["static", "rustls"]
|
||||
|
||||
static = ["bzip2/static", "xz2/static"]
|
||||
static = ["bzip2/static", "xz2/static", "native-tls-crate?/vendored"]
|
||||
pkg-config = ["zstd/pkg-config"]
|
||||
|
||||
zlib-ng = ["flate2/zlib-ng"]
|
||||
|
@ -104,6 +110,7 @@ rustls = [
|
|||
]
|
||||
native-tls = [
|
||||
"__tls",
|
||||
"native-tls-crate",
|
||||
"reqwest/native-tls",
|
||||
"hickory-resolver?/dns-over-native-tls",
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue