#libsodium #bindings #nacl #api-bindings

sys libsodium-sys-stable

Maintained FFI bindings for libsodium stable

57 stable releases

new 1.22.3 Apr 5, 2025
1.22.2 Jan 18, 2025
1.22.1 Oct 27, 2024
1.20.9 May 25, 2024
0.0.19 Sep 21, 2019

#1268 in Cryptography

Download history 3317/week @ 2024-12-17 1064/week @ 2024-12-24 3025/week @ 2024-12-31 5391/week @ 2025-01-07 3819/week @ 2025-01-14 4148/week @ 2025-01-21 5506/week @ 2025-01-28 5271/week @ 2025-02-04 5217/week @ 2025-02-11 6679/week @ 2025-02-18 5943/week @ 2025-02-25 4822/week @ 2025-03-04 6375/week @ 2025-03-11 6794/week @ 2025-03-18 5590/week @ 2025-03-25 7450/week @ 2025-04-01

27,232 downloads per month
Used in 88 crates (15 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