2 releases

0.1.1 Jan 19, 2024
0.1.0 Jan 19, 2024

#2898 in Algorithms

Download history 19/week @ 2024-10-29 23/week @ 2024-11-05 25/week @ 2024-11-12 21/week @ 2024-11-19 24/week @ 2024-11-26 5/week @ 2024-12-03 24/week @ 2024-12-10 80/week @ 2024-12-17 25/week @ 2024-12-24 69/week @ 2024-12-31 145/week @ 2025-01-07 125/week @ 2025-01-14 152/week @ 2025-01-21 157/week @ 2025-01-28 118/week @ 2025-02-04 117/week @ 2025-02-11

569 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