~/talk

C++/Rust Interop: A Practical Guide to Bridging the Gap Between C++ and Rust

Talkat CppCon 2024 · on Sunday, 2024-09-15· [rust]
links:none on file
slides:none on file

Shows concrete bridges: implements manual bindings with C FFI (create/delete pair, opaque Rust type stored in C++ unique_ptr) and contrasts that with CXX code generation; wires Cargo and CMake via corrosion and uses build.rs plus libclang to generate bindings; resolves transitive C++ deps with Conan and produces working CMake install targets. Demonstrates repr(C) structs for fixed-size arrays, copy-cost observations on 4x4 matrices, and a repeatable build workflow that actually links and runs.

AI-written summary · about

  1. 0:00C++/Rust interop intro
  2. 2:29Manual interop basics
  3. 9:58Domain types bridging
  4. 19:21Manual interop summary
  5. 21:07Rust in CMake builds
  6. 32:56Calling C++ from Rust
  7. 44:37Conclusion & tools
  8. 45:42Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.