I'm a Rust beginner and recently made an Elixir package using Rustler which makes it easy to use Rust as a NIF within Elixir/Erlang.
Although I managed to make everything work with not much effort (I love Rust so far!) the code seems very verbose to me. There is a lot of
ok().unwrap() repetition and feels like there is a lot of room for improvement.
If anyone is willing to have a look and help out — everything is all here and the core logic is just about ~100LOC:
I'll appreciate all tips and ideas to improve. Thanks!