With C++

The CXX crate makes it possible to do safe interoperability between Rust and C++.

The overall approach looks like this:

33.5.2. With C++ - 图1

See the CXX tutorial for an full example of using this.