#libsodium #nacl #api-bindings

sys libsodium-sys-stable

Maintained FFI bindings for libsodium stable

57 stable releases

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

#1202 in Cryptography

Download history 5145/week @ 2025-01-06 4330/week @ 2025-01-13 3768/week @ 2025-01-20 5702/week @ 2025-01-27 5018/week @ 2025-02-03 5392/week @ 2025-02-10 6462/week @ 2025-02-17 5746/week @ 2025-02-24 5088/week @ 2025-03-03 6093/week @ 2025-03-10 6711/week @ 2025-03-17 5812/week @ 2025-03-24 7392/week @ 2025-03-31 6602/week @ 2025-04-07 6235/week @ 2025-04-14 5391/week @ 2025-04-21

25,842 downloads per month
Used in 90 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