Skip to content

Asari-AI/zlib-safe-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zlib_safe_rust

A complete, memory-safe Rust translation of the zlib compression library (version 1.3.1).

This translation was created by Asari AI. For details on how this translation was produced, see the accompanying blog post. This version was translated using a more direct 1-to-1 approach that preserves the functionality of the original C code structure while converting to safe Rust patterns.

Features

  • 100% Safe Rust: Zero unsafe code blocks (#![forbid(unsafe_code)] enforced)
  • Complete API: Full coverage of the zlib API including compression, decompression, gzip I/O, and checksums
  • Zero Dependencies: Pure Rust implementation with no external dependencies
  • Thoroughly Tested: Test cases cover core functionality and edge cases. Run with cargo test

Installation

Add to your Cargo.toml:

[dependencies]
zlib = { git = "https://github.com/Asari-AI/zlib-safe-rust" }

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Original Work Attribution

This project is a Rust translation of zlib.

zlib is Copyright (c) Jean-loup Gailly and Mark Adler and is licensed under the zlib license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages