Microsoft is leveraging AI agents to automate the massive task of migrating its legacy codebases to the more secure Rust language.