In JavaScript I've used recast and jscodeshift to automate trivial changes across multiple files.
Does anyone know of similar tools for Rust programs?
I'd like to use something like that to automate migrating tasks in rust-rosetta to the 2018 edition. Specifically removing extern some-crate statements and adjusting the Cargo.toml. I know I could cobble together some pipelines or write a throwaway tool but wanted to ask around first.