Artwork

Content provided by Chris Krycho. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Chris Krycho or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.
Player FM - Podcast App
Go offline with the Player FM app!

e031: FFI Deep Dive

25:18
 
Share
 

Manage episode 233658396 series 2135115
Content provided by Chris Krycho. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Chris Krycho or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.

Exposing Rust types and functions to C API consumers.

Show Notes

It’s impossible to make the declarations below follow the order I talked through them on the recording without also making them horrible to read, so just use this outline instead:

  1. add_in_rust
  2. Strings
    1. concat_strings
    2. free_rust_string
  3. Point
    1. point_translate
  4. union
  5. OpaquePoint
    1. opaque_point_new
    2. opaque_point_translate
    3. opaque_point_free

Links

Sponsors

Thanks to Parity for sponsoring the show and hiring Rust developers!

Patreon Sponsors

(Thanks to the couple people donating who opted out of the reward tier, as well. You know who you are!)

Become a sponsor

Contact

  continue reading

105 episodes

Artwork

e031: FFI Deep Dive

New Rustacean

269 subscribers

published

iconShare
 
Manage episode 233658396 series 2135115
Content provided by Chris Krycho. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Chris Krycho or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.

Exposing Rust types and functions to C API consumers.

Show Notes

It’s impossible to make the declarations below follow the order I talked through them on the recording without also making them horrible to read, so just use this outline instead:

  1. add_in_rust
  2. Strings
    1. concat_strings
    2. free_rust_string
  3. Point
    1. point_translate
  4. union
  5. OpaquePoint
    1. opaque_point_new
    2. opaque_point_translate
    3. opaque_point_free

Links

Sponsors

Thanks to Parity for sponsoring the show and hiring Rust developers!

Patreon Sponsors

(Thanks to the couple people donating who opted out of the reward tier, as well. You know who you are!)

Become a sponsor

Contact

  continue reading

105 episodes

All episodes

×
 
Loading …

Welcome to Player FM!

Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.

 

Quick Reference Guide