#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 150/week @ 2024-03-14 136/week @ 2024-03-21 91/week @ 2024-03-28 211/week @ 2024-04-04 342/week @ 2024-04-11 258/week @ 2024-04-18 499/week @ 2024-04-25 186/week @ 2024-05-02 92/week @ 2024-05-09 203/week @ 2024-05-16 280/week @ 2024-05-23 279/week @ 2024-05-30 349/week @ 2024-06-06 391/week @ 2024-06-13 316/week @ 2024-06-20 571/week @ 2024-06-27

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