RuAnnoy

Build Status Build status Crates.io Coverage Status

MIT License

This library is a rust port of https://github.com/spotify/annoy , currently only index serving part is implemented

Usage

```rust use ru_annoy::*;

let index = AnnoyIndex::load(10, "index.ann", IndexType::Angular).unwrap(); let v0 = index.getitemvector(0); let nearest = index.getnearest(v0.asref(), 5, -1, true); ```

FFI support

dotnet nuget packages

| Runtimes | Nuget package | | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | RuAnnoy | NuGet version | | RuAnnoy-Batteries-Windows-x64 | NuGet version | | RuAnnoy-Batteries-Linux-x64 | NuGet version | | RuAnnoy-Batteries-Darwin-x64 | TODO |

Installation

xml <ItemGroup> <PackageReference Include="RuAnnoy" /> <PackageReference Include="RuAnnoy-Batteries-Windows-x64" /> </ItemGroup>