| Crates.io | cityhash |
| lib.rs | cityhash |
| version | 0.1.1 |
| created_at | 2019-05-29 23:31:52.931399+00 |
| updated_at | 2019-05-31 01:22:31.377224+00 |
| description | Rust bindings for CityHash. |
| homepage | |
| repository | https://github.com/Mossop/cityhash-rs |
| max_upload_size | |
| id | 137789 |
| size | 57,038 |
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.