Google has published a Rust migration skill that turns legacy-code porting into a staged agent workflow, from repository analysis and planning through safe Rust implementation and verification.
The public skill accepts GitHub URLs or local directories and covers C++, Fortran, Java, Python, C, and Shell projects. It requires #![forbid(unsafe_code)] in src/lib.rs and src/main.rs, then logs test runs, checks parity with deterministic seeds, and renders an HTML migration infographic. Skill page
Its PGO and telemetry guide defines four benchmark stages: legacy_baseline, safe_rust, soa_simd, and pgo_lto. That makes PGO benchmarking part of the migration record rather than a final optimization guess.
For builders, the reusable pattern is broader than Rust: gate each phase, preserve benchmark evidence, verify behavior, and bound repair loops before CI accepts a rewrite.
