Skip to content
Rust Search
← Rust FFI

Embedding Rust in C/C++

Rust Programming Language
RustConf 31:20 16515 views

RustConf 2018 - Embedding Rust in C/C++ by Katharina We all know that using C/C++ code in Rust is not too complicated. extern "C", bindgen and build.rs scripts make this pretty easy. But let’s challenge ourselves: what about the other way around? There are huge C and C++ projects that could use some corrosion. In this talk I will not just show simple examples of how to use Rust modules inside larger C/C++ applications, the common pitfalls you will encounter, and to deal with them.

Player unavailable or embedding blocked? Use the YouTube link above.