#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

#22 in #crc32

Download history 386/week @ 2023-12-03 181/week @ 2023-12-10 342/week @ 2023-12-17 213/week @ 2023-12-24 143/week @ 2023-12-31 90/week @ 2024-01-07 335/week @ 2024-01-14 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 172/week @ 2024-03-17

487 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
~35K SLoC