Barnacle (zig_barnacle v0.1.0)

Copy Markdown View Source

Zig-first BEAM NIF helper.

Pairs with the cement Zig module exported by this repository's build.zig.

Summary

Functions

Resolves the NIF shared library path (without extension) for :erlang.load_nif/2.

Returns the current Erlang/OTP major release number (e.g. 28).

Functions

nif_path(otp_app, lib_name)

@spec nif_path(atom(), atom() | String.t()) :: charlist()

Resolves the NIF shared library path (without extension) for :erlang.load_nif/2.

otp_release()

@spec otp_release() :: pos_integer()

Returns the current Erlang/OTP major release number (e.g. 28).