zlib-rs
« Back to VersTracker
Description:
C API for zlib-rs
Type: Formula  |  Latest Version: 20051211@0  |  Tracked Since: Dec 10, 2025
Links: Homepage  |  GitHub  |  Docs  |  formulae.brew.sh
Stars: 561  |  Forks: 34  |  Language: Rust  |  Category: Developer tools
Tags: compression rust zlib safety performance c-api
Install: brew install zlib-rs
About:
zlib-rs provides a drop-in C API replacement for the standard zlib library, implemented entirely in Rust for enhanced memory safety and performance. It allows existing applications that rely on zlib to seamlessly switch to a modern, safe implementation without code changes. This library aims to deliver faster compression speeds while eliminating common memory vulnerabilities found in C implementations.
Key Features:
  • Drop-in C API compatibility with standard zlib
  • Memory-safe implementation using Rust
  • Performance optimizations leveraging Rust's zero-cost abstractions
  • Supports both streaming and single-shot compression/decompression
Use Cases:
  • Replacing zlib in performance-critical applications
  • Enhancing security posture in C/C++ projects
  • Modernizing legacy compression infrastructure
Alternatives:
  • zlib-ng – Fork of zlib with performance improvements but still written in C
  • miniz – Lightweight zlib replacement in C, smaller but fewer features
Version History
Detected Version Rev Change Commit
Jan 23, 2026 11:23am 20051211 0 VERSION_BUMP 2baee04c
Dec 22, 2025 8:35pm 0.5.4 0 VERSION_BUMP 9ecfdca9
Dec 10, 2025 2:28pm 20051211 0 VERSION_BUMP 3048ca07