Skip to content

Commit cfe46b5

Browse files
jirutkaByron
authored andcommitted
feat: add zlib-ng feature to allow linking against system libz-ng
Allow to use zlib-ng (zlib-ng-sys) with native API (no compat mode) that can co-exist with system libz (loaded by e.g. libcurl). This is used in gitoxide package on Alpine Linux.
1 parent 9399fc9 commit cfe46b5

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Cargo.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

git-features/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ crc32 = ["crc32fast"]
4141
## Note that a competitive Zlib implementation is critical to `gitoxide's` object database performance.
4242
## Additional backends are supported, each of which overriding the default Rust backend.
4343
zlib = ["flate2", "flate2/rust_backend", "quick-error"]
44+
## Use zlib-ng (libz-ng-sys) with native API (no compat mode) that can co-exist with system libz.
45+
zlib-ng= ["flate2/zlib-ng"]
4446
## Use a C-based backend which can compress and decompress significantly faster than the other options.
4547
zlib-ng-compat = ["flate2/zlib-ng-compat"]
4648
## Use a slower C-based backend which can compress and decompress significantly faster than the rust version.

0 commit comments

Comments
 (0)