flate2-expose 1.0.25

DEFLATE compression and decompression exposed as Read/BufRead/Write streams. Supports miniz_oxide and multiple zlib implementations. Supports zlib, gzip, and raw deflate streams.
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate flate2_expose;

#[test]
fn zero_write_is_error() {
    let mut buf = [0u8];
    let writer = flate2_expose::write::DeflateEncoder::new(
        &mut buf[..],
        flate2_expose::Compression::default(),
    );
    assert!(writer.finish().is_err());
}