mix compile.barnacle (zig_barnacle v0.1.0)

Copy Markdown View Source

Mix compiler that invokes zig build for each NIF configured under :barnacle in mix.exs.

Example mix.exs

def project do
  [
    app: :my_app,
    compilers: [:barnacle | Mix.compilers()],
    barnacle: [
      hasher: [
        path: "native/hasher",
        optimize: :auto,
        otp: 28,
        flags: []
      ]
    ]
  ]
end