#hashing #compile-time #hash #stable #algorithm #xor #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

#170 in Algorithms

Download history 15899/week @ 2024-03-14 16251/week @ 2024-03-21 16163/week @ 2024-03-28 19230/week @ 2024-04-04 19167/week @ 2024-04-11 18042/week @ 2024-04-18 16201/week @ 2024-04-25 21722/week @ 2024-05-02 13086/week @ 2024-05-09 14991/week @ 2024-05-16 16983/week @ 2024-05-23 17617/week @ 2024-05-30 17054/week @ 2024-06-06 17777/week @ 2024-06-13 18440/week @ 2024-06-20 15093/week @ 2024-06-27

70,913 downloads per month
Used in 589 crates (17 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