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!)
📆 2019-03-24 03:50 / ⌛ 00:19:22
📆 2019-02-28 15:20 / ⌛ 00:12:13
📆 2019-02-22 05:30 / ⌛ 00:23:07
📆 2019-01-23 04:20 / ⌛ 00:18:03
📆 2019-01-14 23:01 / ⌛ 00:22:42