1 unstable release

Uses old Rust 2015

0.2.0 Aug 22, 2018

#23 in #hamming

Download history 8/week @ 2024-04-22 1/week @ 2024-04-29 37/week @ 2024-05-13 14/week @ 2024-05-20 129/week @ 2024-05-27 153/week @ 2024-06-03 84/week @ 2024-06-10 100/week @ 2024-06-17 79/week @ 2024-06-24 35/week @ 2024-07-01 73/week @ 2024-07-08 146/week @ 2024-07-15 69/week @ 2024-07-22 64/week @ 2024-07-29 92/week @ 2024-08-05

373 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