Using Rust’s Foreign Function Interface (FFI) with C!
The code samples here directly match the things I described in the show, so you will likely want to look at add
and ffi::add
, then Point
, translate
, and ffi::translate
in that order.
Other helpful Rust FFI discussions:
Thanks to Manning for sponsoring the show and giving all of you a 40%-off discount on their whole store (but especially Carol Nichols’ and Jake Goulding’s Rust in Motion video content and the Rust in Action MEAP!) at deals.manning.com/new-rustacean
(Thanks to the couple people donating who opted out of the reward tier, as well. You know who you are!)