rust_sodium

Maintainer: David Irvine (david.irvine@maidsafe.net)

Rust bindings to libsodium.

This project is largely based on sodiumoxide. Some main differences are:

|Crate|Documentation|Linux/OS X|Windows|Issues| |:---:|:-----------:|:--------:|:-----:|:----:| ||Documentation|Build Status|Build status|Stories in Ready|

| MaidSafe website | SAFE Dev Forum | SAFE Network Forum | |:----------------------------------------:|:-------------------------------------------:|:----------------------------------------------:|

Note for building on Windows

In order to allow the build script to download libsodium, you must have Powershell v4.0 or greater installed.

Cross-Compiling

Cross-Compiling for ARM

  1. Install dependencies and toolchain:

    sh sudo apt update sudo apt install build-essential gcc-arm-linux-gnueabihf libc6-armhf-cross libc6-dev-armhf-cross -y rustup target add armv7-unknown-linux-gnueabihf

  2. Add the following to a .cargo/config file:

    [target.armv7-unknown-linux-gnueabihf] linker = "arm-linux-gnueabihf-gcc"

  3. Build by running:

    sh cargo build --release --target armv7-unknown-linux-gnueabihf

Cross-Compiling for 32-bit Linux

  1. Install dependencies and toolchain:

    sh sudo apt update sudo apt install build-essential gcc-multilib -y rustup target add i686-unknown-linux-gnu

  2. Build by running:

    sh cargo build --release --target i686-unknown-linux-gnu

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.