rustler
rustler copied to clipboard
Static NIFs
- 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.