#libsodium #bindings #nacl #install #require #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

#1112 in Cryptography

Download history 7296/week @ 2025-02-21 4974/week @ 2025-02-28 5655/week @ 2025-03-07 6661/week @ 2025-03-14 6631/week @ 2025-03-21 6279/week @ 2025-03-28 7053/week @ 2025-04-04 6907/week @ 2025-04-11 4845/week @ 2025-04-18 5888/week @ 2025-04-25 4825/week @ 2025-05-02 6025/week @ 2025-05-09 5324/week @ 2025-05-16 4191/week @ 2025-05-23 5507/week @ 2025-05-30 4167/week @ 2025-06-06

20,082 downloads per month
Used in 96 crates (16 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

OSZAR »