#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

#279 in Algorithms

Download history 8231/week @ 2023-11-30 8601/week @ 2023-12-07 7098/week @ 2023-12-14 5894/week @ 2023-12-21 5688/week @ 2023-12-28 4992/week @ 2024-01-04 5579/week @ 2024-01-11 7652/week @ 2024-01-18 9301/week @ 2024-01-25 11919/week @ 2024-02-01 12150/week @ 2024-02-08 16624/week @ 2024-02-15 15576/week @ 2024-02-22 16090/week @ 2024-02-29 14506/week @ 2024-03-07 13406/week @ 2024-03-14

62,381 downloads per month
Used in 405 crates (16 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