| 1 | From: Jakub Jirutka <[email protected]>
|
| 2 | Date: Sat, 20 Aug 2022 00:09:00 +0200
|
| 3 | Subject: [PATCH] Build with native zlib-ng (no compat)
|
| 4 |
|
| 5 | Use zlib-ng (libz-ng-sys) with native API (no compat mode) that can
|
| 6 | co-exist with system libz (loaded by e.g. libcurl).
|
| 7 |
|
| 8 | |
| 9 | |
| 10 | @@ -46,2 +46,4 @@
|
| 11 | zlib-rust-backend = ["flate2/rust_backend"]
|
| 12 | +## Use zlib-ng (libz-ng-sys) with native API (no compat mode) that can co-exist with system libz.
|
| 13 | +zlib-ng = ["flate2/zlib-ng"]
|
| 14 |
|
| 15 | |
| 16 | |
| 17 | @@ -66,3 +66,2 @@
|
| 18 | "git-features/parallel",
|
| 19 | - "git-features/zlib-ng-compat",
|
| 20 | "git-pack/pack-cache-lru-static",
|
| 21 | |
| 22 | |
| 23 | @@ -33 +33 @@
|
| 24 | -fast = ["git-features/parallel", "git-features/fast-sha1", "git-features/zlib-ng-compat", "git-repository/max-performance"]
|
| 25 | +fast = ["git-features/parallel", "git-features/fast-sha1", "git-features/zlib-ng", "git-repository/max-performance"]
|
| 26 | |
| 27 | |
| 28 | @@ -911,6 +911,7 @@
|
| 29 | checksum = "f82b0f4c27ad9f8bfd1f3208d882da2b09c301bc1c828fd3a00d0216d2fbbff6"
|
| 30 | dependencies = [
|
| 31 | "crc32fast",
|
| 32 | + "libz-ng-sys",
|
| 33 | "libz-sys",
|
| 34 | "miniz_oxide",
|
| 35 | ]
|
| 36 | @@ -2005,6 +2006,16 @@
|
| 37 | "openssl-sys",
|
| 38 | "pkg-config",
|
| 39 | "vcpkg",
|
| 40 | +]
|
| 41 | +
|
| 42 | +[[package]]
|
| 43 | +name = "libz-ng-sys"
|
| 44 | +version = "1.1.8"
|
| 45 | +source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 46 | +checksum = "4399ae96a9966bf581e726de86969f803a81b7ce795fcd5480e640589457e0f2"
|
| 47 | +dependencies = [
|
| 48 | + "cmake",
|
| 49 | + "libc",
|
| 50 | ]
|
| 51 |
|
| 52 | [[package]]
|