Talk
Rust and C++ Inter-operability
Tobias Hunger
33:01
Rust promises to enable everybody to write reliable and efficient software. Many embedded developers find this a tempting offer, but what about all the C++ code?
This presentation takes a look at different approaches for Rust and C++ code to interoperate.
1 / 4
Please log in or create an account to test your knowledge and see the answers.
What did Tobias Hunger identify as the practical common ABI to use when making Rust and C++ binaries communicate?
A
Use the C ABI / C foreign function interface (C FFI) as the common interface.
B
Rely on Rust's stable ABI since the Rust compiler guarantees cross-version compatibility.
C
Rely on the C++ ABI because it is standardized and consistent across compilers.
D
Use C++ name-mangling conventions to directly share complex C++ types without an ABI.
E
Share templates/generics across languages so the compilers generate compatible code.





No comments or questions yet. Be the first to start the conversation!