sodium_library_minimal

Function informing about binary build type 'minimal mode'.

Low-level functions that are not required by high-level APIs are also not present in libsodium binary when compiled in minimal mode (./configure --enable-minimal; translates to #define SODIUM_LIBRARY_MINIMAL). D version identifier SODIUM_LIBRARY_MINIMAL has the exact same meaning as in C headers. Adapt deimos/dub.json and wrapper/dub.json by "versions": ["SODIUM_LIBRARY_MINIMAL"], if this function returns 1.

extern (C) @nogc nothrow pure @trusted
int
sodium_library_minimal
()

Return Value

Type: int

1, if the binary was build in minimal mode, i.e. #define SODIUM_LIBRARY_MINIMAL was used when compiling, 0 otherwise.

See Also

Meta