2 releases
0.1.1 | May 31, 2019 |
---|---|
0.1.0 | May 29, 2019 |
#13 in #versioned
52 downloads per month
Used in dapt
44KB
988 lines
CityHash Rust bindings
This crate contains Rust bindings for the CityHash algorithm. It includes
multiple versions since the hash returned varies depending on the version used.
Each version is in a versioned sub-module with .
characters replaced by _
.
If you want what you're building to have a stable hashing function then use the functions from one of the versioned sub-modules. Otherwise the top-level module will always expose the functions from the latest included version.
Currently only the 64-bit and 128-bit hashing functions with no seeds are exposed, but it would be trivial to add them should someone feel like it!
This crate also contains a small command line interface for hashing strings. The help text is fairly explanatory.
Changelog
- 0.1.1
- Fix compilation on all platforms.
- 0.1.0
- Initial release.
Dependencies
~1.6–5MB
~76K SLoC