u/fryuniin r/rust • Recommends
On “Why would FFI unwinding cause to undefined behaviors?”
There is this talk from years ago that ends talking about how to make erros cross FFI between Rust and C++
link to this video
70K subscribers • 72 videos on Hallway • Conference channel
Intermediate. Assumes working knowledge.
16K views8 years ago1 recommendation
Programming languagesSystems programmingRustC++C
Katharina explains how to embed Rust modules inside larger C and C++ applications, covering common FFI pitfalls and error handling.
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.What people say. Recommended for its explanation of how to handle errors and avoid undefined behavior when crossing the FFI boundary between Rust and C++.
u/fryuniin r/rust • Recommends
On “Why would FFI unwinding cause to undefined behaviors?”