├── .gitattributes ├── .github └── workflows │ ├── cifuzz.yml │ └── main.yml ├── .gitignore ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── MAINTENANCE.md ├── README.md ├── examples ├── compress_file.rs ├── decompress_file.rs ├── deflatedecoder-bufread.rs ├── deflatedecoder-read.rs ├── deflatedecoder-write.rs ├── deflateencoder-bufread.rs ├── deflateencoder-read.rs ├── deflateencoder-write.rs ├── gzbuilder.rs ├── gzdecoder-bufread.rs ├── gzdecoder-read.rs ├── gzdecoder-write.rs ├── gzencoder-bufread.rs ├── gzencoder-read.rs ├── gzencoder-write.rs ├── gzmultidecoder-bufread.rs ├── gzmultidecoder-read.rs ├── hello_world.txt ├── hello_world.txt.gz ├── zlibdecoder-bufread.rs ├── zlibdecoder-read.rs ├── zlibdecoder-write.rs ├── zlibencoder-bufread.rs ├── zlibencoder-read.rs └── zlibencoder-write.rs ├── fuzz ├── .gitignore ├── Cargo.toml └── fuzz_targets │ └── fuzz_gz_roundtrip.rs ├── src ├── bufreader.rs ├── crc.rs ├── deflate │ ├── bufread.rs │ ├── mod.rs │ ├── read.rs │ └── write.rs ├── ffi │ ├── c.rs │ ├── mod.rs │ └── rust.rs ├── gz │ ├── bufread.rs │ ├── mod.rs │ ├── read.rs │ └── write.rs ├── lib.rs ├── mem.rs ├── zio.rs └── zlib │ ├── bufread.rs │ ├── mod.rs │ ├── read.rs │ └── write.rs └── tests ├── corrupt-gz-file.bin ├── early-flush.rs ├── empty-read.rs ├── good-file.gz ├── good-file.txt ├── gunzip.rs ├── multi.gz ├── multi.txt └── zero-write.rs /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/cifuzz.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/.github/workflows/cifuzz.yml -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | Cargo.lock 3 | examples/*.gz 4 | .idea 5 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /MAINTENANCE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/MAINTENANCE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/README.md -------------------------------------------------------------------------------- /examples/compress_file.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/compress_file.rs -------------------------------------------------------------------------------- /examples/decompress_file.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/decompress_file.rs -------------------------------------------------------------------------------- /examples/deflatedecoder-bufread.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/deflatedecoder-bufread.rs -------------------------------------------------------------------------------- /examples/deflatedecoder-read.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/deflatedecoder-read.rs -------------------------------------------------------------------------------- /examples/deflatedecoder-write.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/deflatedecoder-write.rs -------------------------------------------------------------------------------- /examples/deflateencoder-bufread.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/deflateencoder-bufread.rs -------------------------------------------------------------------------------- /examples/deflateencoder-read.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/deflateencoder-read.rs -------------------------------------------------------------------------------- /examples/deflateencoder-write.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/deflateencoder-write.rs -------------------------------------------------------------------------------- /examples/gzbuilder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/gzbuilder.rs -------------------------------------------------------------------------------- /examples/gzdecoder-bufread.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/gzdecoder-bufread.rs -------------------------------------------------------------------------------- /examples/gzdecoder-read.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/gzdecoder-read.rs -------------------------------------------------------------------------------- /examples/gzdecoder-write.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/gzdecoder-write.rs -------------------------------------------------------------------------------- /examples/gzencoder-bufread.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/gzencoder-bufread.rs -------------------------------------------------------------------------------- /examples/gzencoder-read.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/gzencoder-read.rs -------------------------------------------------------------------------------- /examples/gzencoder-write.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/gzencoder-write.rs -------------------------------------------------------------------------------- /examples/gzmultidecoder-bufread.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/gzmultidecoder-bufread.rs -------------------------------------------------------------------------------- /examples/gzmultidecoder-read.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/gzmultidecoder-read.rs -------------------------------------------------------------------------------- /examples/hello_world.txt: -------------------------------------------------------------------------------- 1 | Hello World 2 | -------------------------------------------------------------------------------- /examples/hello_world.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/hello_world.txt.gz -------------------------------------------------------------------------------- /examples/zlibdecoder-bufread.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/zlibdecoder-bufread.rs -------------------------------------------------------------------------------- /examples/zlibdecoder-read.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/zlibdecoder-read.rs -------------------------------------------------------------------------------- /examples/zlibdecoder-write.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/zlibdecoder-write.rs -------------------------------------------------------------------------------- /examples/zlibencoder-bufread.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/zlibencoder-bufread.rs -------------------------------------------------------------------------------- /examples/zlibencoder-read.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/zlibencoder-read.rs -------------------------------------------------------------------------------- /examples/zlibencoder-write.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/examples/zlibencoder-write.rs -------------------------------------------------------------------------------- /fuzz/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | target 3 | corpus 4 | artifacts 5 | -------------------------------------------------------------------------------- /fuzz/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/fuzz/Cargo.toml -------------------------------------------------------------------------------- /fuzz/fuzz_targets/fuzz_gz_roundtrip.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/fuzz/fuzz_targets/fuzz_gz_roundtrip.rs -------------------------------------------------------------------------------- /src/bufreader.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/bufreader.rs -------------------------------------------------------------------------------- /src/crc.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/crc.rs -------------------------------------------------------------------------------- /src/deflate/bufread.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/deflate/bufread.rs -------------------------------------------------------------------------------- /src/deflate/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/deflate/mod.rs -------------------------------------------------------------------------------- /src/deflate/read.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/deflate/read.rs -------------------------------------------------------------------------------- /src/deflate/write.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/deflate/write.rs -------------------------------------------------------------------------------- /src/ffi/c.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/ffi/c.rs -------------------------------------------------------------------------------- /src/ffi/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/ffi/mod.rs -------------------------------------------------------------------------------- /src/ffi/rust.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/ffi/rust.rs -------------------------------------------------------------------------------- /src/gz/bufread.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/gz/bufread.rs -------------------------------------------------------------------------------- /src/gz/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/gz/mod.rs -------------------------------------------------------------------------------- /src/gz/read.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/gz/read.rs -------------------------------------------------------------------------------- /src/gz/write.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/gz/write.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/mem.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/mem.rs -------------------------------------------------------------------------------- /src/zio.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/zio.rs -------------------------------------------------------------------------------- /src/zlib/bufread.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/zlib/bufread.rs -------------------------------------------------------------------------------- /src/zlib/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/zlib/mod.rs -------------------------------------------------------------------------------- /src/zlib/read.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/zlib/read.rs -------------------------------------------------------------------------------- /src/zlib/write.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/src/zlib/write.rs -------------------------------------------------------------------------------- /tests/corrupt-gz-file.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/tests/corrupt-gz-file.bin -------------------------------------------------------------------------------- /tests/early-flush.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/tests/early-flush.rs -------------------------------------------------------------------------------- /tests/empty-read.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/tests/empty-read.rs -------------------------------------------------------------------------------- /tests/good-file.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/tests/good-file.gz -------------------------------------------------------------------------------- /tests/good-file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/tests/good-file.txt -------------------------------------------------------------------------------- /tests/gunzip.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/tests/gunzip.rs -------------------------------------------------------------------------------- /tests/multi.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/tests/multi.gz -------------------------------------------------------------------------------- /tests/multi.txt: -------------------------------------------------------------------------------- 1 | first 2 | second 3 | -------------------------------------------------------------------------------- /tests/zero-write.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rust-lang/flate2-rs/HEAD/tests/zero-write.rs --------------------------------------------------------------------------------