These are chat archives for rust-lang/rust

7th
May 2016
Boris Kuznetsov
@achempion
May 07 2016 12:03
I’m trying to find a clue how to zip file to archive using rust. I found flate2 lib but apparently it works only with stream and disallow save stream to file. does anyone know how to do it?)
Till Höppner
@tilpner
May 07 2016 15:35
achempion - This could help.
Igor
@target-san
May 07 2016 20:19
@achempion Umm... construct Read wrapper over stream, then open file for writing as Write and then do io::copy? I personally see this as great plus, since flate2 doesn't take decision on destination for me.
Boris Kuznetsov
@achempion
May 07 2016 20:47
@tilpner thanks, looks like what i’m looking for
Till Höppner
@tilpner
May 07 2016 21:03
Glad I could help.
ingoreti
@ingoreti
May 07 2016 21:03
in rust we trust
fire a rocket with rust thrust