Blogs:
- https://hansihe.com/posts/rustler-safe-erlang-elixir-nifs-in-rust/
- https://medium.com/@jacob.lerche/writing-rust-nifs-for-your-elixir-code-with-the-rustler-package-d884a7c0dbe3
Reference implementations:
- https://github.com/dimitarvp/xqlite
- https://github.com/rusterlium/NifIo/blob/master/native/io/src/lib.rs
- https://github.com/discord/sorted_set_nif/blob/master/native/sorted_set_nif/src/lib.rs
- https://github.com/mickel8/pine_ssl/blob/master/native/pinessl/src/lib.rs
- https://github.com/tylersamples/counter/blob/main/native/counter/src/lib.rs
Relevant discussions: