Selecta Scoring Algorithm
A more performant version of the selecta scoring algorithm.
FFI
This library includes a C interface to make it easier to use in other langauges. As an example, there is a fork that demonstrates how to include this library in Ruby code.
On Mac OS X:
extend Fiddle::Importer
dlload
extern
end
score = Score::selecta_score(, )
puts score
Check out rust-ffi-examples for details on how Rust FFI works.
Build
cargo build
Release
cargo build --release
Test
cargo test
Bench
Rust nightly is required to run benchmarks. Comment out the lines in tests/
.
Then run:
cargo bench