#cloudflare #gzip #libz

sys cloudflare-zlib-sys

Cloudflare fork of zlib with performance improvements

6 releases

0.3.6 Mar 11, 2025
0.3.4 Jan 8, 2025
0.3.3 Nov 16, 2023
0.3.0 Apr 9, 2021
0.1.2 Jun 1, 2018

#325 in Compression

Download history 2690/week @ 2024-12-07 2399/week @ 2024-12-14 826/week @ 2024-12-21 1207/week @ 2024-12-28 2759/week @ 2025-01-04 2701/week @ 2025-01-11 2555/week @ 2025-01-18 2243/week @ 2025-01-25 3910/week @ 2025-02-01 3304/week @ 2025-02-08 3584/week @ 2025-02-15 3547/week @ 2025-02-22 3710/week @ 2025-03-01 2902/week @ 2025-03-08 2133/week @ 2025-03-15 1664/week @ 2025-03-22

11,184 downloads per month
Used in 22 crates (4 directly)

Zlib license

365KB
7K SLoC

C 6.5K SLoC // 0.2% comments Rust 321 SLoC // 0.0% comments

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

~0–275KB