Rust native binding to libsodium
# Cargo.toml
[dependencies]
libsodium-ffi = "0.1"Environement variables
-
SODIUM_LIB_DIR=/path/to/libsodiumfor telling cargo where to find libsodium -
SODIUM_STATIC=yesfor telling cargo to static-link libsodium -
SODIUM_BUILD_STATIC=yesforce build from source instead of trying to find libsodium in system-wide
build.rsis partially borrowed from rust_sodium project.