Skip to content

Commit

Permalink
Use seperate folder for rust analzyer
Browse files Browse the repository at this point in the history
By asking rust analzyer to use a seperate
folder, it means the cache doesn't get
invalidated when running tests or by
running the application under different 
compiler flags.

Having the cache invalidated
dramatically increases the compile times.
  • Loading branch information
Caleb-T-Owens committed Jul 29, 2024
1 parent 4549daa commit 62b309c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ storybook-static

# Vercel
.vercel

# Rust analyzer
.rust-analyzer/
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"rust-analyzer.check.command": "clippy",
"rust-analyzer.check.allTargets": true,
"rust-analyzer.check.features": "all",
"rust-analyzer.check.extraArgs": [
"--target-dir", ".rust-analyzer/target"
],
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
},
Expand Down

0 comments on commit 62b309c

Please sign in to comment.