Using Rust in UE4 (or other C++ libs)

I & I has started using Rust and was wondering if it were possible to link it into existing 3rd party C++ libs, is there any interoperability possible ?

Like the language but it does feel like it's in it's infancy.

1 Like

It's not clear to me if you want to use Rust in C++ or C++ in Rust. However, both is possible.
The Rustonomicon provides a whole chapter about this topic.
I also recommend reading about bindgen and cbindgen both are tools that automatically generate bindings either for Rust calling C (bindgen) or C/C++ calling Rust (cbindgen).

2 Likes