
SystemsGuide
Calling Rust From C With Cbindgen and Staticlib Step by Step
To expose Rust to C, mark functions extern "C" with a stable name, build a staticlib or cdylib and let cbindgen write the header. The rules are about layout, ownership and panics.
17 min read