#compile-time #crc32 #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

#21 in #crc32

Download history 297/week @ 2024-01-21 311/week @ 2024-01-28 287/week @ 2024-02-04 211/week @ 2024-02-11 246/week @ 2024-02-18 139/week @ 2024-02-25 56/week @ 2024-03-03 119/week @ 2024-03-10 173/week @ 2024-03-17 82/week @ 2024-03-24 197/week @ 2024-03-31 125/week @ 2024-04-07 361/week @ 2024-04-14 398/week @ 2024-04-21 397/week @ 2024-04-28 118/week @ 2024-05-05

1,293 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
~36K SLoC