Michael-F-Bryan / rust-ffi-guide

A guide for doing FFI using Rust
https://michael-f-bryan.github.io/rust-ffi-guide/
Creative Commons Zero v1.0 Universal
282 stars 18 forks source link

Created a "basics" chapter #66

Closed Michael-F-Bryan closed 6 years ago

Michael-F-Bryan commented 6 years ago

This covers basic things like calling C from Rust, Rust from C, compiling + linking, and the reasoning behind the gnarly #[no_mangle] pub unsafe extern "C" fn foo() function signature.