#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

#161 in Compression

Download history 3590/week @ 2023-08-15 4088/week @ 2023-08-22 3966/week @ 2023-08-29 3950/week @ 2023-09-05 4746/week @ 2023-09-12 3521/week @ 2023-09-19 3546/week @ 2023-09-26 3613/week @ 2023-10-03 3237/week @ 2023-10-10 3153/week @ 2023-10-17 3227/week @ 2023-10-24 2539/week @ 2023-10-31 3523/week @ 2023-11-07 3027/week @ 2023-11-14 2201/week @ 2023-11-21 2476/week @ 2023-11-28

11,739 downloads per month
Used in 19 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