1 unstable release
Uses old Rust 2015
0.2.0 | Aug 22, 2018 |
---|
#18 in #hamming
195 downloads per month
7KB
97 lines
Simhash for Rust
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