If its written in rust, and your project is in rust, then using FFI with that is useless (unless your trying to make a module/plug-in system). If its not, though, then its a bit trickier, and involves a bit more work. Start with the libloading crate though if your interested. (Passing structs ad such is hard, though, I still can't really figure that out. Heh.)
"On two occasions I have been asked [by members of Parliament!]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out ?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question." — Charles Babbage.
My Github