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

#844 in Algorithms

Download history 18605/week @ 2024-07-21 20582/week @ 2024-07-28 17727/week @ 2024-08-04 21412/week @ 2024-08-11 17300/week @ 2024-08-18 17452/week @ 2024-08-25 18268/week @ 2024-09-01 17366/week @ 2024-09-08 23206/week @ 2024-09-15 22623/week @ 2024-09-22 21508/week @ 2024-09-29 27200/week @ 2024-10-06 26649/week @ 2024-10-13 24305/week @ 2024-10-20 23122/week @ 2024-10-27 23578/week @ 2024-11-03

99,576 downloads per month
Used in 823 crates (20 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