Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 858 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 858 Bytes

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.