#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

#176 in Algorithms

Download history 5725/week @ 2024-01-12 7897/week @ 2024-01-19 9230/week @ 2024-01-26 12692/week @ 2024-02-02 11636/week @ 2024-02-09 16896/week @ 2024-02-16 15936/week @ 2024-02-23 15917/week @ 2024-03-01 14927/week @ 2024-03-08 15861/week @ 2024-03-15 16333/week @ 2024-03-22 16310/week @ 2024-03-29 19697/week @ 2024-04-05 19132/week @ 2024-04-12 18347/week @ 2024-04-19 12790/week @ 2024-04-26

72,710 downloads per month
Used in 489 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