#libsodium #api-bindings #nacl #crypto-api #crypto

sys libsodium-sys-stable

Maintained FFI bindings for libsodium stable

55 stable releases

1.22.1 Oct 27, 2024
1.21.2 Sep 18, 2024
1.20.9 May 25, 2024
1.20.5 Mar 17, 2024
0.0.19 Sep 21, 2019

#374 in Cryptography

Download history 4755/week @ 2024-07-27 6204/week @ 2024-08-03 5923/week @ 2024-08-10 6140/week @ 2024-08-17 4681/week @ 2024-08-24 5366/week @ 2024-08-31 3632/week @ 2024-09-07 4146/week @ 2024-09-14 5001/week @ 2024-09-21 3965/week @ 2024-09-28 3641/week @ 2024-10-05 4709/week @ 2024-10-12 4651/week @ 2024-10-19 4038/week @ 2024-10-26 3344/week @ 2024-11-02 4494/week @ 2024-11-09

17,219 downloads per month
Used in 78 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