#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

#29 in #crc32

Download history 355/week @ 2024-11-20 196/week @ 2024-11-27 194/week @ 2024-12-04 352/week @ 2024-12-11 133/week @ 2024-12-18 50/week @ 2024-12-25 124/week @ 2025-01-01 256/week @ 2025-01-08 556/week @ 2025-01-15 344/week @ 2025-01-22 98/week @ 2025-01-29 137/week @ 2025-02-05 182/week @ 2025-02-12 461/week @ 2025-02-19 381/week @ 2025-02-26 246/week @ 2025-03-05

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