It's program that bind to Snappy implemented by Rust language.
Reference to chapter of FFI in The Rust Programming Language(TRPL).
- ubuntu
sudo apt install libsnappy-devOther Linux distributions can be like this.
-
install Vcpkg
-
Open PowerShell and execute
vcpkg install snappy:x64-windowsorvcpkg install snappy:x86-windows. -
Edit build.rs. Rewrite
<path_to_vcpkg>to your Path of Vcpkg.
cargo runPlease reference to https://doc.rust-lang.org/nomicon/ffi.html.
MIT