#cloudflare #gzip #libz

sys cloudflare-zlib-sys

Cloudflare fork of zlib with performance improvements

6 releases

0.3.3 Nov 16, 2023
0.3.1 Aug 25, 2023
0.3.0 Apr 9, 2021
0.2.3-beta.1 Oct 24, 2020
0.1.2 Jun 1, 2018

#314 in Compression

Download history 2044/week @ 2024-07-21 2038/week @ 2024-07-28 2625/week @ 2024-08-04 2379/week @ 2024-08-11 2362/week @ 2024-08-18 2637/week @ 2024-08-25 2378/week @ 2024-09-01 2602/week @ 2024-09-08 2165/week @ 2024-09-15 3025/week @ 2024-09-22 2139/week @ 2024-09-29 1734/week @ 2024-10-06 1920/week @ 2024-10-13 2465/week @ 2024-10-20 1877/week @ 2024-10-27 1981/week @ 2024-11-03

8,288 downloads per month
Used in 20 crates (4 directly)

Zlib license

360KB
7K SLoC

C 6.5K SLoC // 0.2% comments Rust 294 SLoC

Rust bindings for Zlib with Cloudflare's performance improvements

This crate builds zlib C implementation for 64-bit ARM and Intel CPUs. It requires x86-64 CPU with SSE 4.2 or ARM64 with NEON & CRC. 32-bit architectures are not supported at all.

The API/ABI of the library is the same as original Zlib's.


lib.rs:

It requires x86-64 CPU with SSE 4.2 or ARM64 with NEON & CRC.

Dependencies