We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cargo fmt
.cargo/config.toml
I would like a single project to use a custom formatter. I have created a .cargo/config.toml with the following contents:
[env] RUSTFMT = "echo"
however, the usual formatter appears to be called.
Using RUSTFMT="echo" cargo fmt returns /path/to/main.rs --edition 2021 as expected.
RUSTFMT="echo" cargo fmt
/path/to/main.rs --edition 2021