Rust really shines for FFI use cases. You get all the same performance benefits you would get with C, but:<p>- It’s a safe language so you don’t have to worry about crashing your program or introducing UB.<p>- You don’t have to deal with the pain of C compiler toolchains. Need you’re code to work on multiple platforms? It will likely just work out of the box.<p>- It has a lot better abstraction capabilities than C, so you get a higher level interface to the host objects.<p>- It has a great package ecosystem which you can take advantage of. Sometimes your native module could be as simple as exposing a few methods from a prewritten library.<p>Once you go down this road, it can be very tempting to write the whole thing in Rust (which can work well too), but if you’ve got an existing code base, or some higher level code you want to keep in a more flexible language, then I think the Rust + scripting language of choice combo is hard to beat.