Skip to content
libsodium native binding in Rust
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libsodium @ 927dfe8 Updated libsodium Apr 19, 2019
src Use standard rust definitions. Allows wasm builds Jan 22, 2019
.gitignore bump version to v0.1.2, add crypto_stream_chacha20_ietf_xor_ic Aug 30, 2017
.gitmodules
.travis.yml bump to v0.1.5, support force build from source Aug 30, 2017
Cargo.toml
README.md Updated windows build script, download lib from mirror Dec 14, 2017
appveyor.yml Updated windows build script, download lib from mirror Dec 14, 2017
build.rs libsodium release doesnt provide 1.0.16 any more Apr 26, 2019

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.
You can’t perform that action at this time.