Calling C code from Rust is (almost) incredibly painless. Rust uses a source-level marker similar to C++'s extern "C" to provide function declarations that link against existing C interfaces. As a result, the only real work is in creating those declarations, along with any needed data structure definitions and special values, and in calling the functions from unsafe Rust code. The Rust Foreign Function Interface Tutorial is a clear and concise guide to (most of) the process.
Jun 16, 13