This functionality is now part of the official dprint toml plugin https://github.com/dprint/dprint-plugin-toml.
A dprint plugin that formats Cargo.toml files according to Rust's formatting convention: https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/cargo.md
- No configuration
- Cannot handle target-specific dependency blocks like
[target.'cfg(target_arch = "wasm32")'.dependencies]
. This is an upstream limitation: DevinR528/toml-parse#7