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

Examples that don't just read_to_string #294

Closed SenojLuap closed 1 year ago

SenojLuap commented 2 years ago

I have no idea how common the read_to_string() use case is, but I've been struggling with errors attempt to decompress to a file, and wouldn't mind seeing some examples of that.

MichaelMcDonnell commented 1 year ago

@SenojLuap, I've created an example that decompresses a file. Is that what you were looking for?

SenojLuap commented 1 year ago

Oof. Had to remember what it was I was working on a year ago 😢 But, I'm pretty sure this is close to the scenario I was interested in, yes.

Thanks!