#libsodium #nacl #api-bindings #crypto #wasm #require

sys libsodium-sys-stable

Maintained FFI bindings for libsodium stable

47 stable releases

new 1.20.7 May 12, 2024
1.20.5 Mar 17, 2024
1.20.4 Nov 30, 2023
1.19.29 Jul 10, 2023
0.0.19 Sep 21, 2019

#434 in Cryptography

Download history 1739/week @ 2024-01-24 1596/week @ 2024-01-31 1656/week @ 2024-02-07 1545/week @ 2024-02-14 1243/week @ 2024-02-21 1643/week @ 2024-02-28 1919/week @ 2024-03-06 1819/week @ 2024-03-13 2127/week @ 2024-03-20 1606/week @ 2024-03-27 2232/week @ 2024-04-03 1839/week @ 2024-04-10 2433/week @ 2024-04-17 2589/week @ 2024-04-24 2034/week @ 2024-05-01 1410/week @ 2024-05-08

8,839 downloads per month
Used in 73 crates (14 directly)

MIT/Apache

2MB
4.5K SLoC

libsodium-sys

A patched version of the libsodium-sys crate that installs stable versions of libsodium instead of point releases.

Cargo features:

  • fetch-latest: download the latest stable version.
  • optimized: build a version optimized for the current platform.
  • minimal: do not build deprecated APIs.

On Windows, if a libsodium Visual Studio package is not installed, pre-compiled binaries are downloaded. Alternatively, they can be fetched from an arbitrary local directory, whose path is defined in a SODIUM_DIST_DIR environment variable.

Compiling libsodium to WebAssembly/WASI-core requires the Zig compiler to be installed.

Dependencies