#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

#26 in #crc32

Download history 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 211/week @ 2024-11-03 272/week @ 2024-11-10 384/week @ 2024-11-17 326/week @ 2024-11-24 113/week @ 2024-12-01 397/week @ 2024-12-08 208/week @ 2024-12-15

1,074 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
~39K SLoC