AxHash
AxHash is a fast, deterministic hashing family for Rust, C/C++.
If you only need AxHash in Rust, start with the axhash crate from this workspace. It is the simplest entrypoint and re-exports the core engine with a friendlier import path.
Pick The Right Package
- Rust:
axhash - C / C++ / Go / Zig / Swift / Kotlin Native:
axhash-ffi - Internal engine /
no_std:axhash-core
Rust Quick Start
Add the simplest Rust package:
[]
= "0.8"
Hash raw bytes:
use hash;
Hash raw bytes with a seed:
use hash_with_seed;
Hash any Rust value that implements Hash:
use hash_value;
Use the streaming hasher:
use AxHasher;
use Hasher as _;
Use AxHash with HashMap:
use AxBuildHasher;
use HashMap;
Inspect the active backend:
use ;
Workspace Layout
- axhash-core: low-level Rust core and
no_stdengine - axhash-ffi: stable C ABI
Benchmarks
Internal Criterion screenshots:

License
MIT.