#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

#1325 in Algorithms

Download history 604/week @ 2024-07-20 1028/week @ 2024-07-27 1556/week @ 2024-08-03 1162/week @ 2024-08-10 974/week @ 2024-08-17 784/week @ 2024-08-24 1135/week @ 2024-08-31 1133/week @ 2024-09-07 938/week @ 2024-09-14 1669/week @ 2024-09-21 3158/week @ 2024-09-28 1708/week @ 2024-10-05 1366/week @ 2024-10-12 1306/week @ 2024-10-19 775/week @ 2024-10-26 1044/week @ 2024-11-02

4,763 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–485KB