Crate crc_adler

Crate crc_adler 

Source
Expand description

§CRC-Adler: High-Performance Checksum Library

A high-performance Rust implementation of Adler-32 and CRC-32 checksum algorithms, optimized for speed and reliability.

§Features

  • Blazing Fast Performance: Achieves up to 2.86 GiB/s throughput on modern hardware
  • Zero Dependencies: No external dependencies for maximum compatibility
  • Memory Safe: 100% safe Rust code with no unsafe blocks
  • #![no_std] Compatible: Works in embedded and constrained environments
  • Comprehensive Testing: Extensive test suite with known test vectors
  • Optimized Algorithms: Advanced optimizations including chunk processing and modulo reduction tricks

§Quick Start

use crc_adler::{adler32, crc32};

// Adler-32 checksum
let data = b"Hello, World!";
let checksum = adler32(data);
println!("Adler-32 checksum: 0x{:08x}", checksum);

// CRC-32 checksum
let data = b"123456789";
let checksum = crc32(data);
println!("CRC-32 checksum: 0x{:08x}", checksum);

§Performance

Our optimized implementations deliver exceptional performance:

  • Adler-32: Up to 2.86 GiB/s on 1MB data
  • CRC-32: Up to 528 MiB/s on 1MB data

Benchmarks run on Intel Core i9-9980HK (x86_64) with Rust 1.70+ in release mode

Re-exports§

pub use crc32::crc32;
pub use adler32::adler32;

Modules§

adler32
crc32