#cloudflare #gzip #libz

sys cloudflare-zlib-sys

Cloudflare fork of zlib with performance improvements

5 releases

new 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

#220 in Compression

Download history 3061/week @ 2024-09-23 2069/week @ 2024-09-30 1734/week @ 2024-10-07 1955/week @ 2024-10-14 2438/week @ 2024-10-21 1859/week @ 2024-10-28 2011/week @ 2024-11-04 2660/week @ 2024-11-11 2069/week @ 2024-11-18 2002/week @ 2024-11-25 2318/week @ 2024-12-02 2666/week @ 2024-12-09 2338/week @ 2024-12-16 818/week @ 2024-12-23 1248/week @ 2024-12-30 2718/week @ 2025-01-06

7,192 downloads per month
Used in 22 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