- Your NIF will now build along with your project.
defmodule Cairo do
use Rustler, otp_app: :anoma, crate: "cairo"
# When your NIF is loaded, it will override this function.
def cairo_prove(_arg1, _arg2, _arg3), do: :erlang.nif_error(:nif_not_loaded)
def cairo_verify(_arg1, _arg2), do: :erlang.nif_error(:nif_not_loaded)
end
A full example can be found in cairo_vm/README.md