farmhash-sys
Rust FFI bindings for a minimal implementation of Google's FarmHash hashing algorithms.
Overview
This crate provides low-level Rust bindings to a minimal implementation of Google's FarmHash algorithm. FarmHash is a family of hash functions designed for fast hashing of strings and other data.
The implementation is simplified and optimized for simplicity and ease of use, while still providing the core FarmHash functions:
hash32- 32-bit hashhash32_with_seed- 32-bit hash with seedhash64- 64-bit hashhash64_with_seed- 64-bit hash with seedhash64_with_seeds- 64-bit hash with two seedsfingerprint128- 128-bit fingerprintfingerprint128_with_seed- 128-bit fingerprint with seed
Usage
Add this to your Cargo.toml:
[]
= "0.1.0"
Example:
use farmhash;
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
This is a simplified implementation based on Google's FarmHash algorithm.