libsodium-ffi

Build Status Build status

Rust native binding to libsodium

```toml

Cargo.toml

[dependencies] libsodium-ffi = "0.2" ```

Usage

Environement variables

Examples

```bash

Specify paths by hand

This is the path to the directory of /usr/local/lib/libsodium.a

export SODIUMLIBDIR=/usr/local/lib

This is the path to the directory of /usr/local/include/sodium.h

export SODIUMINCLUDEDIR=/usr/local/include

Uses system-wide libsodium

Statically link system-wide libsodium

export SODIUM_STATIC=yes

Build libsodium from source

export SODIUMBUILDSTATIC=yes ```

Thanks