-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tell Rust Analyzer to run build to its own target folder
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
**/target | ||
**/target_ra | ||
/.*.json | ||
/.vscode | ||
/media/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,32 @@ | ||
{ | ||
"files.insertFinalNewline": true, | ||
"editor.formatOnSave": true, | ||
"files.trimTrailingWhitespace": true | ||
"files.trimTrailingWhitespace": true, | ||
"editor.semanticTokenColorCustomizations": { | ||
"rules": { | ||
"*.unsafe:rust": "#eb5046" | ||
} | ||
}, | ||
"files.exclude": { | ||
"target/**": true, | ||
"target_ra/**": true, | ||
}, | ||
// Tell Rust Analyzer to use its own target directory, so we don't need to wait for it to finish wen we want to `cargo run` | ||
"rust-analyzer.checkOnSave.overrideCommand": [ | ||
"cargo", | ||
"cranky", | ||
"--target-dir=target_ra", | ||
"--workspace", | ||
"--message-format=json", | ||
"--all-targets" | ||
], | ||
"rust-analyzer.cargo.buildScripts.overrideCommand": [ | ||
"cargo", | ||
"check", | ||
"--quiet", | ||
"--target-dir=target_ra", | ||
"--workspace", | ||
"--message-format=json", | ||
"--all-targets" | ||
], | ||
} |