Short answer, see this thread.
You basically need to use no_std
Rust with the C API. Rob Tsuk did some work creating bindings and a build system. The bindings have examples, and his solitaire project still works. Feel free to DM me or reply in the other thread.