With C++

The CXX crate enables safe interoperability between Rust and C++.

The overall approach looks like this: