#cloudflare #gzip #libz

sys cloudflare-zlib-sys

Cloudflare fork of zlib with performance improvements

5 releases

0.3.5 Feb 10, 2025
0.3.3 Nov 16, 2023
0.3.0 Apr 9, 2021
0.2.3-beta.1 Oct 24, 2020
0.1.2 Jun 1, 2018

#341 in Compression

Download history 1652/week @ 2024-11-01 2753/week @ 2024-11-08 2226/week @ 2024-11-15 2154/week @ 2024-11-22 2132/week @ 2024-11-29 2568/week @ 2024-12-06 2596/week @ 2024-12-13 999/week @ 2024-12-20 908/week @ 2024-12-27 2747/week @ 2025-01-03 2636/week @ 2025-01-10 2688/week @ 2025-01-17 2288/week @ 2025-01-24 3810/week @ 2025-01-31 3329/week @ 2025-02-07 1202/week @ 2025-02-14

11,076 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