2 releases (1 stable)

Uses old Rust 2015

1.0.0 Oct 27, 2015
0.1.0 Oct 27, 2015

#34 in #consistent-hashing

Download history 2/week @ 2024-06-28 2/week @ 2024-07-05 19/week @ 2024-07-12 53/week @ 2024-07-19 36/week @ 2024-07-26 14/week @ 2024-08-02 25/week @ 2024-08-09 33/week @ 2024-08-16 46/week @ 2024-08-23 11/week @ 2024-08-30 37/week @ 2024-09-06 40/week @ 2024-09-13 73/week @ 2024-09-20 51/week @ 2024-09-27 32/week @ 2024-10-04 5/week @ 2024-10-11

164 downloads per month
Used in naught

MIT license

3KB

jch-rs - Jump Consistent Hash for Rust

Build Status

Jump Consistent Hash is a linear complexity consistent hash algorithm described in John Lamping and Eric Veach's paper on the topic

Example

use jch;

let key = 5u64;
let num_buckets = 1024i32;
println!("{}", jch::hash(key, num_buckets));

No runtime deps