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

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

#29 in #crc32

Download history 487/week @ 2025-03-11 363/week @ 2025-03-18 353/week @ 2025-03-25 628/week @ 2025-04-01 393/week @ 2025-04-08 166/week @ 2025-04-15 308/week @ 2025-04-22 355/week @ 2025-04-29 253/week @ 2025-05-06 189/week @ 2025-05-13 204/week @ 2025-05-20 498/week @ 2025-05-27 183/week @ 2025-06-03 266/week @ 2025-06-10 216/week @ 2025-06-17 111/week @ 2025-06-24

811 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