3 ms·
You can't. However there are options. - Rust has strong support for C ABI much like C++. So you can communicate between Rust and C++ via a C ABI. - There are
by kevincox 6y ago
You can't. However there are options.
- Rust has strong support for C ABI much like C++. So you can communicate between Rust and C++ via a C ABI.
- There are projects like https://cxx.rs/ https://cxx.rs/ to provide higher-level bindings between the two languages.
However I suspect that template-heavy/generic-heavy code will never be well supported. This is usually not an issue for the types of things that we are trying to bind.