hannah
xxhash wrapper library for Nim
Wraps a native library — check OS Compatibility below for platform-specific linking notes.
Summary
| Latest Version | 0.10.0 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:26 |
Tags
Authors
- Saint
Installation
nimble install hannah
choosenim install hannah
git clone https://github.com/sainttttt/hannah
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| hannah | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/sainttttt/hannah |
|---|---|
| Homepage | https://github.com/sainttttt/hannah |
| Registry Source | nimble_official |
README
hannah
Hash library for Nim, currently supports xxhash
nimble install hannah
Usage:
hash = streamingHashXxH3_64(largefilePath, seed)
echo hash
var state = newXxh32()
state.update(msg)
assert state.digest() == msgh32
assert $state == $msgh32
state.reset()
state.update("Nobody ")
state.update("inspects ")
state.update("the spammish ")
state.update("repetition")
assert state.digest() == 3794352943'u32
assert $state == $3794352943'u32
state.reset()