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:
Jiahao XU 2022-11-22 17:52:41 +11:00 committed by GitHub
parent 66abf1b8c1
commit bd3f1d598c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 0 deletions

View file

@ -26,6 +26,12 @@ if $for_release then {
else "" end
)
|
.features = (
if ($matrix."use-cross" // false)
then .features // ["zstd-thin"]
else .features end
)
|
.features = (
if (.features | length > 0)
then "--no-default-features --features \(.features | join(","))"