2 releases

0.1.1 Jan 19, 2024
0.1.0 Jan 19, 2024

#2678 in Algorithms

Download history 3/week @ 2024-07-28 8/week @ 2024-09-01 12/week @ 2024-09-08 23/week @ 2024-09-15 14/week @ 2024-09-22 25/week @ 2024-09-29 29/week @ 2024-10-06 38/week @ 2024-10-13 9/week @ 2024-10-20 11/week @ 2024-10-27 28/week @ 2024-11-03 19/week @ 2024-11-10

68 downloads per month

Custom license

6KB
56 lines

rust-crc32

Calculate CRC-32 checksum for binary data.

How to install

cargo add crc32_light

How to use

use crc32_light::crc32;
fn main() {
    let crc = crc32(b"dog");
    println!("CRC32 = 0x{:08x}", crc);
}

lib.rs:

Calculate CRC32 checksum for binary data.

Examples

assert_eq!(crc32(b"cat"), 0x9E5E43A8);
assert_eq!(crc32(b"dog"), 0x812C397D);

No runtime deps