#hashing #compile-time #hash #xor #algorithm #stable #fnv1a

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

#1814 in Algorithms

Download history 17978/week @ 2024-11-16 19282/week @ 2024-11-23 32307/week @ 2024-11-30 28076/week @ 2024-12-07 24658/week @ 2024-12-14 18063/week @ 2024-12-21 21240/week @ 2024-12-28 25764/week @ 2025-01-04 27372/week @ 2025-01-11 27754/week @ 2025-01-18 30167/week @ 2025-01-25 28702/week @ 2025-02-01 30556/week @ 2025-02-08 30198/week @ 2025-02-15 36897/week @ 2025-02-22 29744/week @ 2025-03-01

130,844 downloads per month
Used in 976 crates (21 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