e031: FFI Deep Dive

Published: May 14, 2019, 2:40 a.m.

b'

Exposing Rust types and functions to C API consumers.

\\n

Show Notes

\\n

It\\u2019s 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:

\\n
    \\n
  1. add_in_rust
  2. \\n
  3. Strings\\n
      \\n
    1. concat_strings
    2. \\n
    3. free_rust_string
    4. \\n
  4. \\n
  5. Point\\n
      \\n
    1. point_translate
    2. \\n
  6. \\n
  7. union
  8. \\n
  9. OpaquePoint\\n
      \\n
    1. opaque_point_new
    2. \\n
    3. opaque_point_translate
    4. \\n
    5. opaque_point_free
    6. \\n
  10. \\n
\\n\\n\\n

Sponsors

\\n

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

\\n

Patreon Sponsors

\\n\\n

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

\\n

Become a sponsor

\\n\\n

Contact

\\n'