axhash-core
Engine (core) AxHash: hash function non-cryptographic yang cepat, deterministik, dan fleksibel untuk Rust.
Fitur Utama
- API Rust yang sederhana dan idiomatik
- Kompatibel
no_std(bisa dipakai di embedded, kernel, dsb) - Zero allocation di jalur utama
- Seeded/deterministik, cocok untuk struktur data, cache, indexing
- Backend otomatis memilih instruksi optimal (AES/NEON/dll)
- Bisa dipakai langsung oleh crate binding lain seperti
axhash-ffi,axhash-python, dsb
Instalasi
Tambahkan ke Cargo.toml:
[]
= "0.1"
Contoh Penggunaan
Hash bytes langsung:
use axhash_seeded;
let hash = axhash_seeded;
println!;
Streaming hash (implementasi Hasher):
use AxHasher;
use Hasher;
let mut hasher = with_seed;
hasher.write;
let hash = hasher.finish;
Lisensi
MIT. Bebas digunakan untuk open source maupun komersial.