I am having problems running the command ‘rustfmt’ on stable.
If I run the old rustfmt (installed using cargo), it prints out an error message saying that it is deprecated.
If I run the version installed with ‘rustup’ it only works with the nightly compiler:
error: toolchain 'stable-x86_64-unknown-linux-gnu' does not have the binary `rustfmt`
I think there are some workarounds:
- Use the cargo version and add a flag when executing ‘rustfmt’
- Use the nightly version, but only through cargo and add a flag to cargo.
However, none of these work in emacs/spacemacs without some temporary fix that involves editing the editor configuration.
I’l really like to just have the ‘rustfmt’ command work without any extra flags. Is there some way to do this?