#gzip #header #file-header #decoding #file-format #codec

build gzip-header

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

6 releases (1 stable)

1.0.0 Nov 10, 2021
0.3.0 Jun 24, 2019
0.2.0 Aug 9, 2017
0.1.2 Jul 25, 2017
0.1.0 Apr 19, 2017

#198 in Compression

Download history 177875/week @ 2024-11-20 86212/week @ 2024-11-27 152957/week @ 2024-12-04 207919/week @ 2024-12-11 107398/week @ 2024-12-18 43795/week @ 2024-12-25 130589/week @ 2025-01-01 210767/week @ 2025-01-08 169668/week @ 2025-01-15 170348/week @ 2025-01-22 173438/week @ 2025-01-29 196094/week @ 2025-02-05 175000/week @ 2025-02-12 210949/week @ 2025-02-19 223716/week @ 2025-02-26 230291/week @ 2025-03-05

878,962 downloads per month
Used in 118 crates (2 directly)

MIT/Apache

26KB
532 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.

Currently requires rust 1.32 and newer.

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.

Dependencies

~78KB