compress-lib 0.6.0

DEFLATE, zlib, and gzip for Rust services: streaming and sans-IO with bounded memory, hard limits against decompression bombs, WebSocket permessage-deflate (RFC 7692) support, no unsafe code, and zero third-party dependencies.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! CRC-32 and Adler-32.
//!
//! The checksums gzip (CRC-32) and zlib (Adler-32) carry. The framing
//! decoders verify them automatically; they are public because they are
//! useful on their own (file integrity, cache keys, zip entries).
//!
//! ```
//! use compress_lib::checksum::{adler32, crc32};
//!
//! assert_eq!(crc32(b"123456789"), 0xCBF4_3926);
//! assert_eq!(adler32(b"Wikipedia"), 0x11E6_0398);
//! ```

mod adler32;
mod crc32;

pub use adler32::{Adler32, adler32, adler32_combine};
pub use crc32::{Crc32, crc32, crc32_combine};