Erlang/OTP versioning
Erlang/Elixir NIFs are shared libraries that depend on erl_nif.h. Nimler automatically detects installed Erlang/OTP, and tries to produce bindings that are compatible with the Erlang NIF API version detected at compile time.
Using an unsupported function will err during compilation:
Error: enif_term_type() not supported in target NIF version: 2.10.
Requires at least version 2.15.
Target specific erl_nif version
To target a specific version of erl_nif API, compile with: --define:nif_version="x.y"
.