#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

#241 in Compression

Download history 2298/week @ 2024-08-17 2694/week @ 2024-08-24 2413/week @ 2024-08-31 2430/week @ 2024-09-07 2322/week @ 2024-09-14 2998/week @ 2024-09-21 2171/week @ 2024-09-28 1762/week @ 2024-10-05 1857/week @ 2024-10-12 2421/week @ 2024-10-19 1939/week @ 2024-10-26 1971/week @ 2024-11-02 2668/week @ 2024-11-09 2104/week @ 2024-11-16 1992/week @ 2024-11-23 2272/week @ 2024-11-30

9,626 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