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

sys libsodium-sys-stable

Maintained FFI bindings for libsodium stable

56 stable releases

1.22.2 Jan 18, 2025
1.22.1 Oct 27, 2024
1.21.2 Sep 18, 2024
1.20.9 May 25, 2024
0.0.19 Sep 21, 2019

#617 in Cryptography

Download history 3775/week @ 2024-10-09 5165/week @ 2024-10-16 4268/week @ 2024-10-23 3564/week @ 2024-10-30 3931/week @ 2024-11-06 4277/week @ 2024-11-13 3671/week @ 2024-11-20 3801/week @ 2024-11-27 4530/week @ 2024-12-04 4429/week @ 2024-12-11 2844/week @ 2024-12-18 1062/week @ 2024-12-25 3224/week @ 2025-01-01 5444/week @ 2025-01-08 4074/week @ 2025-01-15 3289/week @ 2025-01-22

16,346 downloads per month
Used in 80 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