mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-25 06:40:03 +00:00
Use flate2/zlib-rs for dev/release build (#2068)
* Add feature zlib-rs to binstalk-downloader Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * Add feature zlib-rs to binstalk Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * Add feature zlib-rs to cargo-binstall Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * Enable zlib-rs for CI build pipeline Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --------- Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
72ddf9c3f4
commit
712ad730a6
4 changed files with 5 additions and 22 deletions
24
justfile
24
justfile
|
@ -79,30 +79,10 @@ support-pkg-config := if target == target-host {
|
|||
if target-os == "linux" { "true" } else { "" }
|
||||
} else { "" }
|
||||
|
||||
#} else if target == "aarch64-unknown-linux-gnu" {
|
||||
# ",zlib-ng"
|
||||
#} else if target == "aarch64-unknown-linux-musl" {
|
||||
# ",zlib-ng"
|
||||
git-max-perf-feature := if target == "x86_64-apple-darwin" {
|
||||
",zlib-ng"
|
||||
} else if target == "x86_64h-apple-darwin" {
|
||||
",zlib-ng"
|
||||
} else if target == "aarch64-apple-darwin" {
|
||||
",zlib-ng"
|
||||
} else if target-os == "windows" {
|
||||
",zlib-ng"
|
||||
} else if target == "x86_64-unknown-linux-gnu" {
|
||||
",zlib-ng"
|
||||
} else if target == "x86_64-unknown-linux-musl" {
|
||||
",zlib-ng"
|
||||
} else {
|
||||
""
|
||||
}
|
||||
|
||||
h3-features := if enable-h3 != "" { ",http3" } else { "" }
|
||||
cargo-features := trim_end_match(if override-features != "" { override-features + h3-features
|
||||
} else if (cargo-profile / ci-or-no) == "dev/ci" { "git,rustls,fancy-with-backtrace,zstd-thin,log_max_level_debug" + git-max-perf-feature + (if support-pkg-config != "" { ",pkg-config" } else { "" }) + h3-features + extra-features
|
||||
} else if (cargo-profile / ci-or-no) == "release/ci" { "git,static,rustls,trust-dns,fancy-no-backtrace,zstd-thin,log_release_max_level_debug,cross-lang-fat-lto" + git-max-perf-feature + h3-features + extra-features
|
||||
} else if (cargo-profile / ci-or-no) == "dev/ci" { "git,rustls,fancy-with-backtrace,zstd-thin,log_max_level_debug,zlib-rs" + (if support-pkg-config != "" { ",pkg-config" } else { "" }) + h3-features + extra-features
|
||||
} else if (cargo-profile / ci-or-no) == "release/ci" { "git,static,rustls,trust-dns,fancy-no-backtrace,zstd-thin,log_release_max_level_debug,cross-lang-fat-lto,zlib-rs" + h3-features + extra-features
|
||||
} else if extra-features != "" { extra-features + h3-features
|
||||
} else if enable-h3 != "" { "http3"
|
||||
} else { ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue