-
.vscode\settings.json
{ "rust-analyzer.checkOnSave.overrideCommand": [ "cargo", "+nightly", "check", "--message-format=json", "--package=$YOUR_PACKAGE" ] }
-
.cargo/config.toml
[alias] check2 = "check --message-format=json --package=$YOUR_PACKAGE"
and in
~\AppData\Roaming\Code\User\settings.json
{ "rust-analyzer.checkOnSave.overrideCommand": [ "cargo", "check2" ] }
-
rustup override set nightly
(Stored in~/.rustup/settings.toml
)