Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}