1 unstable release

Uses old Rust 2015

0.2.0 Aug 22, 2018

#1812 in Text processing

Download history 116/week @ 2023-10-14 77/week @ 2023-10-21 112/week @ 2023-10-28 169/week @ 2023-11-04 58/week @ 2023-11-11 130/week @ 2023-11-18 200/week @ 2023-11-25 246/week @ 2023-12-02 214/week @ 2023-12-09 126/week @ 2023-12-16 29/week @ 2023-12-23 77/week @ 2023-12-30 158/week @ 2024-01-06 146/week @ 2024-01-13 166/week @ 2024-01-20 55/week @ 2024-01-27

548 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