rust-lang / flate2-rs

DEFLATE, gzip, and zlib bindings for Rust
https://docs.rs/flate2
Apache License 2.0
891 stars 158 forks source link

Add [De]Compress::new_gzip #261

Closed coolreader18 closed 3 years ago

coolreader18 commented 3 years ago

Related to #240

alexcrichton commented 3 years ago

Thanks! Could you be sure to add some tests for this as well? I wasn't aware of this feature of adding 16 to zlib window bits (I still don't know what those are...)

coolreader18 commented 3 years ago

Yeah, I don't really know either :sweat_smile: . I added a test just round-tripping through new_gzip Compress/Decompress, hopefully that's good.

coolreader18 commented 3 years ago

Would you be able to cut a new release for crates.io? Or are there generally more changes in a given release?

alexcrichton commented 3 years ago

Sure thing, published now.