2 releases

0.1.1 May 31, 2019
0.1.0 May 29, 2019

#7 in #versioned

Download history 49/week @ 2024-03-11 52/week @ 2024-03-18 47/week @ 2024-03-25 93/week @ 2024-04-01 45/week @ 2024-04-08 49/week @ 2024-04-15 47/week @ 2024-04-22 44/week @ 2024-04-29 37/week @ 2024-05-06 44/week @ 2024-05-13 63/week @ 2024-05-20 32/week @ 2024-05-27 77/week @ 2024-06-03 78/week @ 2024-06-10 42/week @ 2024-06-17 44/week @ 2024-06-24

245 downloads per month
Used in dapt

MIT license

44KB
988 lines

CityHash Rust bindings

Build Status Crates.io Released API docs

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

~0.8–3.5MB
~55K SLoC