#crc32 #compile-time #literals #byte #run-time #string

compile-time-crc32

A library for taking the crc32 of a string or byte literal at compile time

3 releases

0.1.2 Nov 22, 2019
0.1.1 Nov 22, 2019
0.1.0 Nov 22, 2019

#23 in #crc32

Download history 304/week @ 2024-07-21 414/week @ 2024-07-28 245/week @ 2024-08-04 325/week @ 2024-08-11 470/week @ 2024-08-18 616/week @ 2024-08-25 393/week @ 2024-09-01 424/week @ 2024-09-08 350/week @ 2024-09-15 199/week @ 2024-09-22 62/week @ 2024-09-29 207/week @ 2024-10-06 176/week @ 2024-10-13 121/week @ 2024-10-20 166/week @ 2024-10-27 206/week @ 2024-11-03

682 downloads per month
Used in shards

MIT license

3KB

compile-time-crc32

A macro for taking the crc32 of a string or bytes literal at runtime.

Example:

use compile_time_crc32::crc32;

fn main() {
    assert_eq!(0xD87F7E0C, crc32!("test"));
}

Dependencies

~1.5MB
~38K SLoC