rebar3_otter__compile (rebar3_otter v0.3.0)

Provider that compiles Rust NIF crates via cargo.

Runs as a pre-compile hook so the shared library is in place before the Erlang compiler runs.

Summary

Functions

do(State)

-spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, {module(), term()}}.

format_error/1

-spec format_error(term()) -> string() | iolist().

init(State)

-spec init(rebar_state:t()) -> {ok, rebar_state:t()}.