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

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

#725 in Cryptography

Download history 3858/week @ 2024-11-17 3459/week @ 2024-11-24 4331/week @ 2024-12-01 4395/week @ 2024-12-08 4092/week @ 2024-12-15 1285/week @ 2024-12-22 2171/week @ 2024-12-29 5102/week @ 2025-01-05 4318/week @ 2025-01-12 3909/week @ 2025-01-19 5456/week @ 2025-01-26 5161/week @ 2025-02-02 5418/week @ 2025-02-09 6252/week @ 2025-02-16 5995/week @ 2025-02-23 4761/week @ 2025-03-02

22,809 downloads per month
Used in 83 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