Skip to content

Commit

Permalink
Re-enable zlib-ng on x86 platforms (#10365)
Browse files Browse the repository at this point in the history
## Summary

Closes #10363.
  • Loading branch information
charliermarsh authored Jan 7, 2025
1 parent 043bdce commit c8b3e85
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
31 changes: 26 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion crates/uv-performance-flate2-backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,12 @@ edition = "2021"
[lib]
doctest = false

[dependencies]
# Use `zlib-ng` on x86_64 targets, apart from FreeBSD.
[target.'cfg(all(target_arch = "x86_64", not(target_os = "freebsd")))'.dependencies]
flate2 = { version = "1.0.28", default-features = false, features = ["zlib-ng"] }
# See: https://github.com/rust-lang/libz-sys/issues/225
libz-ng-sys = { version = "<1.1.20" }

# Use `zlib-rs` everywhere else.
[target.'cfg(not(all(target_arch = "x86_64", not(target_os = "freebsd"))))'.dependencies]
flate2 = { version = "1.0.28", default-features = false, features = ["zlib-rs"] }

0 comments on commit c8b3e85

Please sign in to comment.