Skip to content

Commit 99013ae

Browse files
committed
Switch to the zlib flate2 backend
The default `miniz_oxide` flate2 backend has poor performance in debug/under QEMU: rust-lang/flate2-rs#297 Ideally we'd use the fastest `zlib-ng` backend, however it fails to cross-compile: rust-lang/libz-sys#93 As such we have to use the next best alternate backend, which is `zlib`. This makes the `flate2` usage in this repo consistent with `libherokubuildpack`, Python CNB, PHP CNB etc.
1 parent bf86694 commit 99013ae

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

Cargo.lock

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

buildpacks/ruby/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ workspace = true
99
[dependencies]
1010
clap = { version = "4", default-features = false, features = ["derive", "error-context", "help", "std", "usage"] }
1111
commons = { path = "../../commons" }
12-
flate2 = "1"
12+
flate2 = { version = "1", default-features = false, features = ["zlib"] }
1313
fs-err = "2"
1414
fun_run = { version = "0.1", features = ["which_problem"] }
1515
glob = "0.3"

0 commit comments

Comments
 (0)