mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 12:38:43 +00:00
Enable feature thin of dep zstd for any target built natively (#480)
* Add new feature `binstalk-downloader/zstd-thin` * Add new feature `binstalk/zstd-thin` * Add new feature `binstalk/zstd-thin` * Enable feature zstd-thin for targets built natively Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
66abf1b8c1
commit
bd3f1d598c
4 changed files with 12 additions and 0 deletions
6
.github/scripts/compile-settings.jq
vendored
6
.github/scripts/compile-settings.jq
vendored
|
@ -26,6 +26,12 @@ if $for_release then {
|
||||||
else "" end
|
else "" end
|
||||||
)
|
)
|
||||||
|
|
|
|
||||||
|
.features = (
|
||||||
|
if ($matrix."use-cross" // false)
|
||||||
|
then .features // ["zstd-thin"]
|
||||||
|
else .features end
|
||||||
|
)
|
||||||
|
|
|
||||||
.features = (
|
.features = (
|
||||||
if (.features | length > 0)
|
if (.features | length > 0)
|
||||||
then "--no-default-features --features \(.features | join(","))"
|
then "--no-default-features --features \(.features | join(","))"
|
||||||
|
|
|
@ -60,6 +60,8 @@ native-tls = ["binstalk/native-tls"]
|
||||||
|
|
||||||
trust-dns = ["binstalk/trust-dns"]
|
trust-dns = ["binstalk/trust-dns"]
|
||||||
|
|
||||||
|
zstd-thin = ["binstalk/zstd-thin"]
|
||||||
|
|
||||||
fancy-no-backtrace = ["miette/fancy-no-backtrace"]
|
fancy-no-backtrace = ["miette/fancy-no-backtrace"]
|
||||||
fancy-with-backtrace = ["fancy-no-backtrace", "miette/fancy"]
|
fancy-with-backtrace = ["fancy-no-backtrace", "miette/fancy"]
|
||||||
|
|
||||||
|
|
|
@ -69,3 +69,5 @@ native-tls = ["reqwest/native-tls", "trust-dns-resolver?/dns-over-native-tls"]
|
||||||
|
|
||||||
# Enable trust-dns-resolver so that features on it will also be enabled.
|
# Enable trust-dns-resolver so that features on it will also be enabled.
|
||||||
trust-dns = ["trust-dns-resolver", "reqwest/trust-dns"]
|
trust-dns = ["trust-dns-resolver", "reqwest/trust-dns"]
|
||||||
|
|
||||||
|
zstd-thin = ["zstd/thin"]
|
||||||
|
|
|
@ -49,3 +49,5 @@ rustls = ["crates_io_api/rustls", "binstalk-downloader/rustls"]
|
||||||
native-tls = ["binstalk-downloader/native-tls"]
|
native-tls = ["binstalk-downloader/native-tls"]
|
||||||
|
|
||||||
trust-dns = ["binstalk-downloader/trust-dns"]
|
trust-dns = ["binstalk-downloader/trust-dns"]
|
||||||
|
|
||||||
|
zstd-thin = ["binstalk-downloader/zstd-thin"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue