Skip to content

Commit

Permalink
Attempt to enable zlib-ng on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jan 7, 2025
1 parent c8b3e85 commit 85d8a69
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 8 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

41 changes: 41 additions & 0 deletions crates/uv-performance-flate2-backend/Cargo.lock

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

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

# 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]
[target.'cfg(any(target_os = "freebsd"))'.dependencies]
flate2 = { version = "1.0.28", default-features = false, features = ["zlib-rs"] }

# Use `zlib-ng` on all supported platforms.
[target.'cfg(not(any(target_os = "freebsd")))'.dependencies]
flate2 = { version = "1.0.28", default-features = false, features = ["zlib-ng"] }

0 comments on commit 85d8a69

Please sign in to comment.