[ Originally forked from https://github.com/thestinger/rust-snappy ]
Add this to your Cargo.toml
:
ini
[dependencies]
snappy = "0.4"
and this to your crate root:
rust
extern crate snappy;
brew install snappy
.LD_LIBRARY_PATH
and LD_RUN_PATH
environment variables before
issueing cargo build
.export SNAPPY_SYS_STATIC=1
prior
to cargo build
.export SNAPPY_SYS_STATIC_FROM_SOURCE=1
prior to
cargo build
.)The Snappy C++ library is also optionally bundled as a submodule. A
git submodule update --init
will fetch a copy of the library for local compilation. This can will
then be used if the c++ library cannot be found on your system or
if SNAPPY_SYS_STATIC_FROM_SOURCE
is set to 1
.