View Source mix fennec.precompile (fennec_precompile v0.1.0)

Download and use precompiled NIFs safely with checksums. Fennec Precompile is a tool for library maintainers that use :elixir_make and wish to ship precompiled binaries. This tool aims to be a drop-in replacement for :elixir_make. It helps by removing the need to have the C/C++ compiler and other dependencies installed in the user's machine. Check the README.md for details.

example

Example

defmodule MyNative do
  use FennecPrecompile,
    base_url: "https://github.com/me/my_project/releases/download/v0.1.0",
    version: "0.1.0"
end

options

Options

  • :base_url - A valid URL that is used as base path for the NIF file.

  • :version - The version of precompiled assets (it is part of the NIF filename).

  • :targets - A list of targets supported by Zig for which precompiled assets are avilable. By default the following targets are configured:

    • x86_64-macos
    • x86_64-linux-gnu
    • x86_64-linux-musl
    • x86_64-windows-gnu
    • aarch64-macos
    • aarch64-linux-gnu
    • aarch64-linux-musl
    • riscv64-linux-musl