packager and developer friendly libsodium elixir NIF
 
 
 
 
 
 
Go to file
Aydin Mercan 2982515f2e
initial commit
2023-05-31 14:31:03 +03:00
c_src initial commit 2023-05-31 14:31:03 +03:00
lib initial commit 2023-05-31 14:31:03 +03:00
test initial commit 2023-05-31 14:31:03 +03:00
.formatter.exs initial commit 2023-05-31 14:31:03 +03:00
.gitignore initial commit 2023-05-31 14:31:03 +03:00
CMakeLists.txt initial commit 2023-05-31 14:31:03 +03:00
Makefile initial commit 2023-05-31 14:31:03 +03:00
README.md initial commit 2023-05-31 14:31:03 +03:00
STYLE.md initial commit 2023-05-31 14:31:03 +03:00
build.sh initial commit 2023-05-31 14:31:03 +03:00
clean.sh initial commit 2023-05-31 14:31:03 +03:00
meson.build initial commit 2023-05-31 14:31:03 +03:00
meson.options initial commit 2023-05-31 14:31:03 +03:00
mix.exs initial commit 2023-05-31 14:31:03 +03:00
mix.lock initial commit 2023-05-31 14:31:03 +03:00

README.md

SaltyWitch

Another NIF library for libsodium.

Roadmap

Easy cross-compiling the NIF.

Building

On UNIX-like systems:

  • Shell (tested on bash and busybox ash)
  • Make
  • A GCC-like C99 compiler.
  • meson (optional but recommended)
  • pkgconf (if directly building)

SALTYWITCH_BUILD_SYSTEM: By default direct is used for UNIX systems. - meson (recommended): Use meson to build the NIF. - cmake: Use CMake to build the NIF - direct: Build the NIF in a single compiler invocation like a lunatic.

SALTYWITCH_MESON_ARGS: extra arguments for meson - do not specify --prefix

Installation

If available in Hex, the package can be installed by adding saltywitch to your list of dependencies in mix.exs:

def deps do
  [
    {:saltywitch, "~> 0.0.1"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/saltywitch.