There is nbindgen that generates Rust bindings for Nim - <https://github.com/arnetheduck/nbindgen>
See this forum post for some examples: <https://forum.nim-lang.org/t/5816> And here is short example how to call Nim code from Rust: <https://stackoverflow.com/questions/59879692/how-to-call-a-nim-function-from-rust-through-c-ffi>