#libsodium #nacl #api-bindings #crypto

sys libsodium-sys

FFI binding to libsodium

24 releases

Uses old Rust 2015

0.2.7 Jun 24, 2021
0.2.6 Jul 22, 2020
0.2.5 Oct 12, 2019
0.2.2 May 16, 2019
0.0.2 Mar 26, 2015

#1931 in Cryptography

Download history 28401/week @ 2023-11-26 34046/week @ 2023-12-03 23948/week @ 2023-12-10 26630/week @ 2023-12-17 23969/week @ 2023-12-24 29075/week @ 2023-12-31 24276/week @ 2024-01-07 25203/week @ 2024-01-14 23206/week @ 2024-01-21 29430/week @ 2024-01-28 26483/week @ 2024-02-04 26441/week @ 2024-02-11 20272/week @ 2024-02-18 22003/week @ 2024-02-25 26630/week @ 2024-03-03 10984/week @ 2024-03-10

81,769 downloads per month
Used in 239 crates (27 directly)

MIT/Apache

15MB
59K SLoC

C 30K SLoC // 0.0% comments Shell 9K SLoC // 0.2% comments M4 8K SLoC // 0.2% comments Rust 4K SLoC // 0.0% comments GNU Style Assembly 3K SLoC // 0.0% comments Visual Studio Project 3K SLoC Automake 866 SLoC Pan 575 SLoC Visual Studio Solution 348 SLoC Batch 161 SLoC // 0.0% comments Python 158 SLoC C# 35 SLoC Bitbake 22 SLoC VBScript 11 SLoC

Contains (static library, 2.5MB) msvc/x64/Debug/v142/libsodium.lib, (static library, 2MB) msvc/Win32/Debug/v142/libsodium.lib, (static library, 2MB) msvc/Win32/Release/v142/libsodium.lib, (static library, 2MB) msvc/x64/Release/v142/libsodium.lib, (static library, 565KB) mingw/win32/libsodium.a, (static library, 485KB) mingw/win64/libsodium.a

libsodium-sys

Build output ENV Variables

This is the possible build metadata for the crate.

  • DEP_SODIUM_INCLUDE is the directory which contains the sodium.h header. It is only available if the header was installed and SODIUM_LIB_DIR was not set.
  • DEP_SODIUM_LIB is the directory containing the compiled library. It is only available if SODIUM_LIB_DIR was not set.

See link build metadata for more information about build metadata.

Dependencies