Skip to content

Commit

Permalink
chore(dev): move rust-anlayzer CARGO_TARGET_DIR to separate dir
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Apr 12, 2024
1 parent c1bce3d commit 693ff22
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,15 @@
"scheme": "file"
}
],
// Override CARGO_TARGET_DIR in order to prevent locking or cobbling the main target.
//
// Cargo often uses a diferent Rust version than RA because of Nix.
"rust-analyzer.cargo.extraEnv": {
"RUSTFLAGS": "--cfg tokio_unstable"
}
"RUSTFLAGS": "--cfg tokio_unstable",
"CARGO_TARGET_DIR": "${workspaceFolder}/target/analyzer"
},
"rust-analyzer.server.extraEnv": {
"CARGO_TARGET_DIR": "${workspaceFolder}/target/analyzer"
},
"rust-analyzer.cargo.targetDir": "${workspaceFolder}/target/analyzer"
}

0 comments on commit 693ff22

Please sign in to comment.