#hash #fnv #fowler-noll-vo

lz_fnv

Fowler-Noll-Vo hash functions for various integer types

3 releases

Uses old Rust 2015

0.1.2 Mar 20, 2018
0.1.1 Aug 7, 2017
0.1.0 Aug 6, 2017

#1445 in Algorithms

Download history 833/week @ 2024-11-17 702/week @ 2024-11-24 907/week @ 2024-12-01 857/week @ 2024-12-08 754/week @ 2024-12-15 247/week @ 2024-12-22 268/week @ 2024-12-29 515/week @ 2025-01-05 1097/week @ 2025-01-12 672/week @ 2025-01-19 856/week @ 2025-01-26 1044/week @ 2025-02-02 1394/week @ 2025-02-09 932/week @ 2025-02-16 990/week @ 2025-02-23 712/week @ 2025-03-02

4,100 downloads per month
Used in tide-etag

MIT license

110KB
1.5K SLoC

Lz FNV (Fowler-Noll-Vo)

This crate provides Fowler-Noll-Vo implementations for 32-bit, 64-bit and 128-bit width integers.

Build Status

Documentation

Features

  • nightly - For when using a nightly build of rust
  • u128 - When not using nightly this uses the extprim crate for its u128

License

This project is licensed under the MIT License (LICENSE or http://opensource.org/licenses/MIT).


lib.rs:

The lz_fnv crate implements Fowler-Noll-Vo hashing.

FNV-0, FNV-1 and FNV-1a hash implementations are supported for various width integers.

The FNV implementations for u64 also implement Hasher.

The crate features available are:

  • nightly - For when using a nightly build of rust
  • u128 - When not using nightly this uses the extprim crate for its u128 type

Dependencies

~0–470KB