#checksum #integrity #hash #adler32 #zlib

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

#167 in Algorithms

Download history 489318/week @ 2022-03-05 488612/week @ 2022-03-12 487888/week @ 2022-03-19 532984/week @ 2022-03-26 519160/week @ 2022-04-02 513519/week @ 2022-04-09 513641/week @ 2022-04-16 539541/week @ 2022-04-23 525620/week @ 2022-04-30 556609/week @ 2022-05-07 533949/week @ 2022-05-14 532764/week @ 2022-05-21 502149/week @ 2022-05-28 597907/week @ 2022-06-04 573367/week @ 2022-06-11 474695/week @ 2022-06-18

2,228,764 downloads per month
Used in 7,605 crates (4 directly)

0BSD OR MIT OR Apache-2.0

17KB
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

~175KB