niffler_precompiled/loader_template

Generation of the Erlang loader module.

The module name must be exactly the name passed to rustler::init!, and every NIF function/arity must be exported with a stub or ERTS refuses to load the library (bad_lib / “Function not found”).

Values

pub fn checksum_input(
  package: String,
  nif_module: String,
  functions: List(config.Function),
) -> String

A stable representation of the generated file, useful for generate --check.

pub fn render(
  package: String,
  nif_module: String,
  functions: List(config.Function),
) -> String
✨ Search Document