2 releases

0.1.1 May 31, 2019
0.1.0 May 29, 2019
Download history 32/week @ 2023-10-30 25/week @ 2023-11-06 29/week @ 2023-11-13 35/week @ 2023-11-20 55/week @ 2023-11-27 28/week @ 2023-12-04 44/week @ 2023-12-11 19/week @ 2023-12-18 36/week @ 2023-12-25 30/week @ 2024-01-01 42/week @ 2024-01-08 34/week @ 2024-01-15 49/week @ 2024-01-22 61/week @ 2024-01-29 64/week @ 2024-02-05 83/week @ 2024-02-12

260 downloads per month

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.5–2.9MB
~53K SLoC