Is there a gzip library available for Rust?

gzip, rust, zlib

Solution

Edit: there is now flate2, libflate and deflate.

So I combined dbaupp's and Mark Adler's advice, and created a gzip-decompressor: https://github.com/alexcrichton/rust-compress/pull/30

However, it turns out that Mr Crichton already wrote a gzip layer: https://github.com/alexcrichton/flate2-rs

For now, those two options exist; it remains to be seen what ends up as the standard Rust solution.

Problem

My searches have found: The flate library, based on miniz. Edit: as Mark Adler points out, this is a zlib library, but does not deal with gzip headers. Snappy bindings, which don't compile on modern Rust.

Original source