#cloudflare #gzip #libz

sys cloudflare-zlib-sys

Cloudflare fork of zlib with performance improvements

5 releases

0.3.4 Jan 8, 2025
0.3.3 Nov 16, 2023
0.3.2 Oct 14, 2023
0.3.0 Apr 9, 2021
0.1.2 Jun 1, 2018

#394 in Compression

Download history 1734/week @ 2024-10-06 1920/week @ 2024-10-13 2465/week @ 2024-10-20 1860/week @ 2024-10-27 2022/week @ 2024-11-03 2660/week @ 2024-11-10 2067/week @ 2024-11-17 1986/week @ 2024-11-24 2312/week @ 2024-12-01 2680/week @ 2024-12-08 2354/week @ 2024-12-15 804/week @ 2024-12-22 1243/week @ 2024-12-29 2808/week @ 2025-01-05 2788/week @ 2025-01-12 2327/week @ 2025-01-19

9,201 downloads per month
Used in 23 crates (4 directly)

Zlib license

365KB
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