libsodium native binding in Rust
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
libsodium @ 675149b
src
.gitignore
.gitmodules
.travis.yml
Cargo.toml
README.md
appveyor.yml
build.rs

README.md

libsodium-sys

Build Status Build status

Rust native binding to libsodium

# Cargo.toml
[dependencies]
libsodium-ffi = "0.1"

Usage

Environement variables

  • SODIUM_LIB_DIR=/path/to/libsodium for telling cargo where to find libsodium

  • SODIUM_STATIC=yes for telling cargo to static-link libsodium

  • SODIUM_BUILD_STATIC=yes force build from source instead of trying to find libsodium in system-wide

Thanks

  • build.rs is partially borrowed from rust_sodium project.