rustler icon indicating copy to clipboard operation
rustler copied to clipboard

Static NIFs

Open filmor opened this issue 9 months ago • 0 comments

  • Still lacks documentation
  • The necessary mechanism was released with Erlang 28 (https://www.erlang.org/doc/apps/erts/erl_nif.html#initialization)
  • Relevant discussion is https://github.com/rusterlium/rustler/discussions/687.

The general approach is to create a staticlib that depends on the relevant NIF libraries (all Rust-based ones have to be linked together) and then passing it into the configure script of OTP.

filmor avatar Mar 15 '25 12:03 filmor