Skip to content
0:00 / 0:00

#rust#c++#ffi

RustConf 2018 - Embedding Rust in C/C++ by Katharina

Rust Programming Language

70K subscribers • 72 videos on Hallway • Conference channel

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Katharina

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.

Why it's here

1 person recommends this

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++.

Moments people linked to

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
10View on Reddit