#adler32 #checksum #zlib #integrity #hash #compression

no-std adler

A simple clean-room implementation of the Adler-32 checksum

8 releases (3 stable)

Uses old Rust 2015

1.0.2 Feb 26, 2021
1.0.1 Nov 8, 2020
0.2.3 Jul 10, 2020
0.2.2 Jun 27, 2020
0.1.0 Jun 25, 2020

#77 in Algorithms

Download history 1873668/week @ 2024-07-23 1863942/week @ 2024-07-30 1945477/week @ 2024-08-06 1906202/week @ 2024-08-13 1805678/week @ 2024-08-20 1677060/week @ 2024-08-27 1841291/week @ 2024-09-03 1562124/week @ 2024-09-10 1406408/week @ 2024-09-17 1466812/week @ 2024-09-24 1401001/week @ 2024-10-01 1333296/week @ 2024-10-08 1487077/week @ 2024-10-15 1359564/week @ 2024-10-22 1251624/week @ 2024-10-29 1035554/week @ 2024-11-05

5,337,284 downloads per month
Used in 890 crates (8 directly)

0BSD OR MIT OR Apache-2.0

19KB
211 lines

Adler-32 checksums for Rust

crates.io docs.rs CI

This crate provides a simple implementation of the Adler-32 checksum, used in the zlib compression format.

Please refer to the changelog to see what changed in the last releases.

Features

  • Permissively licensed (0BSD) clean-room implementation.
  • Zero dependencies.
  • Zero unsafe.
  • Decent performance (3-4 GB/s).
  • Supports #![no_std] (with default-features = false).

Usage

Add an entry to your Cargo.toml:

[dependencies]
adler = "1.0.2"

Check the API Documentation for how to use the crate's functionality.

Rust version support

Currently, this crate supports all Rust versions starting at Rust 1.31.0.

Bumping the Minimum Supported Rust Version (MSRV) is not considered a breaking change, but will not be done without good reasons. The latest 3 stable Rust versions will always be supported no matter what.

Dependencies

~205KB