Does anyone know of an example of a rust library or function that’s been turned into a NIF? Ideally available on GitHub both before and after the conversion?
Also, the “nerves” framework is basically 80% NIFS of embedded C code.
Also, the “nerves” framework is basically 80% NIFS of embedded C code.
Not sure of an example. Really just wrap any rust function with appropriate code to convert Erlang terms to rust and back... There’s a few elixir rustler howtos: https://medium.com/@jacob.lerche/writing-rust-nifs-for-your-...