Don’t rewrite in Rust.
Rewriting for memory safety is similar to premature optimization: it’s focusing on something that doesn’t give the most bang for the buck. Old & battle tested C/++ have few memory bugs. Most memory bugs exist in *new* C/++ code.
Write NEW code in Rust.