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-dev
Other Linux distributions can be like this.
-
install Vcpkg
-
Open PowerShell and execute
vcpkg install snappy:x64-windows
orvcpkg install snappy:x86-windows
. -
Edit build.rs. Rewrite
<path_to_vcpkg>
to your Path of Vcpkg.
cargo run
Please reference to https://doc.rust-lang.org/nomicon/ffi.html.
MIT