#compile-time #fnv-1a #hashing #stable-channel #16-bit

const-fnv1a-hash

A #![no_std] crate for performing FNV1A-16/32/64/128 hashing on Rust stable at compile time

3 stable releases

1.1.0 Aug 13, 2022
1.0.1 Jul 29, 2021
1.0.0 Jul 27, 2021

#569 in Concurrency

Download history 53785/week @ 2025-10-10 56337/week @ 2025-10-17 52112/week @ 2025-10-24 52228/week @ 2025-10-31 52631/week @ 2025-11-07 49089/week @ 2025-11-14 56132/week @ 2025-11-21 52101/week @ 2025-11-28 55682/week @ 2025-12-05 70151/week @ 2025-12-12 67801/week @ 2025-12-19 53866/week @ 2025-12-26 50376/week @ 2026-01-02 74298/week @ 2026-01-09 68626/week @ 2026-01-16 64344/week @ 2026-01-23

263,865 downloads per month
Used in 1,574 crates (32 directly)

MIT license

6KB
84 lines

const-fnv1a-hash

Rust based const FNV1A hashing implementation for hashing at compile time.

This is a Rust implementation of FNV1A hashing algorithms which works on the stable channel.

Features

  • no_std.
  • All functions are const, and can be used at compile time to hash all the things.
  • Additional convenience functions for str hashing.
  • dependency free.
  • 16 bit hashing implemented using XOR folding.

No runtime deps