mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
Disable zlib-ng for the default cargo-install build (#354)
but explicitly enable it in our own builds. This is because using zlib-ng sometimes does not compile easily on Windows, and using the pure miniz_oxide offers a better install story from source. For our binary builds, we can provide the optimal performance, and still do that for most users as they will update with cargo-binstall, getting our build as a second pass.
This commit is contained in:
parent
23daef610b
commit
e24b2ce1e3
3 changed files with 3 additions and 3 deletions
2
.github/scripts/compile-settings.jq
vendored
2
.github/scripts/compile-settings.jq
vendored
|
@ -4,7 +4,7 @@ if $for_release then {
|
||||||
# Use build-std to build a std library optimized for size and abort immediately on abort,
|
# Use build-std to build a std library optimized for size and abort immediately on abort,
|
||||||
# so that format string for `unwrap`/`expect`/`unreachable`/`panic` can be optimized out.
|
# so that format string for `unwrap`/`expect`/`unreachable`/`panic` can be optimized out.
|
||||||
args: ($matrix.release_build_args // "-Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort"),
|
args: ($matrix.release_build_args // "-Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort"),
|
||||||
features: ($matrix.release_features // []),
|
features: ($matrix.release_features // ["zlib-ng", "static", "rustls", "trust-dns", "fancy-no-backtrace"]),
|
||||||
} else {
|
} else {
|
||||||
output: "debug",
|
output: "debug",
|
||||||
profile: "dev",
|
profile: "dev",
|
||||||
|
|
|
@ -35,7 +35,7 @@ tokio = { version = "1.20.1", features = ["rt-multi-thread"], default-features =
|
||||||
embed-resource = "1.7.3"
|
embed-resource = "1.7.3"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["static", "zlib-ng", "rustls", "trust-dns", "fancy-no-backtrace"]
|
default = ["static", "rustls", "trust-dns", "fancy-no-backtrace"]
|
||||||
|
|
||||||
mimalloc = ["dep:mimalloc"]
|
mimalloc = ["dep:mimalloc"]
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ zstd = { version = "0.10.0", default-features = false }
|
||||||
env_logger = "0.9.0"
|
env_logger = "0.9.0"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["static", "zlib-ng", "rustls"]
|
default = ["static", "rustls"]
|
||||||
|
|
||||||
static = ["bzip2/static", "xz2/static"]
|
static = ["bzip2/static", "xz2/static"]
|
||||||
pkg-config = ["zstd/pkg-config"]
|
pkg-config = ["zstd/pkg-config"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue