Getting Rusty with Elixir and NIFs
Check out an example project that aims to create a Rust NIF that crops an image and makes it grayscale to show you a way to run your Rust code from Elixir efficiently. https://curiosum.com/blog/getting-rusty-with-elixir-nifs-rust