#adler32 #checksum #integrity #zlib #hash

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

#297 in Algorithms

Download history 1183090/week @ 2023-12-17 702386/week @ 2023-12-24 1124330/week @ 2023-12-31 1376421/week @ 2024-01-07 1413921/week @ 2024-01-14 1460015/week @ 2024-01-21 1519234/week @ 2024-01-28 1561365/week @ 2024-02-04 1545859/week @ 2024-02-11 1564935/week @ 2024-02-18 1651741/week @ 2024-02-25 1662503/week @ 2024-03-03 1616182/week @ 2024-03-10 1670761/week @ 2024-03-17 1638960/week @ 2024-03-24 1623717/week @ 2024-03-31

6,670,353 downloads per month
Used in 33,300 crates (9 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

~200KB