C++ has been around a lot longer than Rust and large codebases exist that are not feasible to just rewrite in Rust. Therefore it’s often interesting to integrate Rust into existing C++ codebases. Likewise, there are many C++ libraries that may be interesting to integrate into Rust projects.
Topics:
In this workshop, we will explore:
- How to call Rust from C++ and vice-versa using CXX
- How to integrate a Rust library into a C++ application built with CMake
- How to integrate a C++ library into a Rust application built with Cargo
Prerequisites:
Basic C++ knowledge, as well as basic Rust knowledge is required. On the workshop day you will need a working Rust installation, a C++ toolchain, and a CMake setup. We will provide example code and exercise material before the training day that participants should use to verify their setup.