1 unstable release

Uses old Rust 2015

0.2.0 Aug 22, 2018

#18 in #hamming

Download history 71/week @ 2024-07-25 75/week @ 2024-08-01 64/week @ 2024-08-08 90/week @ 2024-08-15 71/week @ 2024-08-22 82/week @ 2024-08-29 76/week @ 2024-09-05 54/week @ 2024-09-12 76/week @ 2024-09-19 97/week @ 2024-09-26 89/week @ 2024-10-03 84/week @ 2024-10-10 43/week @ 2024-10-17 49/week @ 2024-10-24 58/week @ 2024-10-31 38/week @ 2024-11-07

195 downloads per month

MIT license

7KB
97 lines

Simhash for Rust

Build Status

Simhash algorithm (developed by Moses Charikar) implemented in Rust. It generates 64 bit simhashes and can calculate similarities using the Hamming distance.

To use simhash append the following lines to your Cargo.toml file.

[dependencies.simhash]
version = "0.2"

You can now use it in your project by adding simhash as an extern crate.

extern crate simhash;

fn main() {
  let h: u64 = simhash::hash("The cat sat on the mat");
  println!("{}", h);
}

Dependencies

~19KB