#gzip #compression

gzip-header

A crate for decoding and encoding the header part of gzip files based on the gzip header implementation in the flate2 crate

5 unstable releases

Uses old Rust 2015

0.3.0 Jun 24, 2019
0.2.0 Aug 9, 2017
0.1.2 Jul 25, 2017
0.1.1 May 21, 2017
0.1.0 Apr 19, 2017

#170 in Compression

Download history 5333/week @ 2021-02-26 4722/week @ 2021-03-05 4543/week @ 2021-03-12 4707/week @ 2021-03-19 5241/week @ 2021-03-26 5180/week @ 2021-04-02 5212/week @ 2021-04-09 5193/week @ 2021-04-16 5579/week @ 2021-04-23 4896/week @ 2021-04-30 5138/week @ 2021-05-07 5386/week @ 2021-05-14 5469/week @ 2021-05-21 5941/week @ 2021-05-28 7123/week @ 2021-06-04 5970/week @ 2021-06-11

21,828 downloads per month
Used in 16 crates (via deflate)

MIT/Apache

26KB
530 lines

gzip-header

A library to decode and encode headers for the gzip format. The library also contains a reader absctraction over a CRC checksum hasher.

A file in the gzip format contains a gzip header, a number of compressed data blocks in the DEFLATE format, and ends with the CRC32-checksum (in the IEEE format) and number of bytes (modulo 2^32) of the uncompressed data.

The gzip header is purely a set of metadata, and doesn't have any impact on the decoding of the compressed data other than the fact that DEFLATE-encoded data with a gzip-header is checked using the CRC32 algorithm.

This library is based on the gzip header functionality in the flate2 crate.

License

Like the non-C parts of flate2-rs, gzip-header is distributed under the terms of both the MIT license and the Apache License (Version 2.0),

See LICENSE-APACHE, and LICENSE-MIT for details.


lib.rs:

A library to decode and encode headers for the gzip format. The library also contains a reader absctraction over a CRC checksum hasher.

A file in the gzip format contains a gzip header, a number of compressed data blocks in the DEFLATE format, and ends with the CRC32-checksum (in the IEEE format) and number of bytes (modulo 2^32) of the uncompressed data.

The gzip header is purely a set of metadata, and doesn't have any impact on the decoding of the compressed data other than the fact that DEFLATE-encoded data with a gzip-header is checked using the CRC32 algorithm.

This library is based on the gzip header functionality in the flate2 crate.

Dependencies

~78KB