#const #hash #hashing #compile-time #stable

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

#474 in Algorithms

Download history 675/week @ 2023-02-04 1160/week @ 2023-02-11 1341/week @ 2023-02-18 1473/week @ 2023-02-25 1459/week @ 2023-03-04 1403/week @ 2023-03-11 3010/week @ 2023-03-18 2998/week @ 2023-03-25 2281/week @ 2023-04-01 2868/week @ 2023-04-08 2589/week @ 2023-04-15 2878/week @ 2023-04-22 2555/week @ 2023-04-29 3234/week @ 2023-05-06 2887/week @ 2023-05-13 1848/week @ 2023-05-20

10,839 downloads per month
Used in 20 crates (9 directly)

MIT license

5KB
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