Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a gzip library available for Rust? [closed]

Tags:

gzip

zlib

rust

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.

like image 777
dhardy Avatar asked Jul 08 '14 13:07

dhardy


1 Answers

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.

like image 65
2 revs Avatar answered Sep 21 '22 07:09

2 revs