#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

#310 in Compression

Download history 1425/week @ 2023-12-23 2289/week @ 2023-12-30 4910/week @ 2024-01-06 3108/week @ 2024-01-13 2458/week @ 2024-01-20 2548/week @ 2024-01-27 2743/week @ 2024-02-03 3028/week @ 2024-02-10 2594/week @ 2024-02-17 2355/week @ 2024-02-24 2247/week @ 2024-03-02 1975/week @ 2024-03-09 2348/week @ 2024-03-16 2415/week @ 2024-03-23 2400/week @ 2024-03-30 1527/week @ 2024-04-06

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