Rust: rename target_dir to cargo_target_dir, add to extraction options

Also removed the now unused `extract_dependencies` one.
This commit is contained in:
Paolo Tranquilli
2024-11-08 09:53:50 +01:00
parent 4f6fda0100
commit 083394073a
3 changed files with 10 additions and 10 deletions

View File

@@ -131,7 +131,7 @@ fn main() -> anyhow::Result<()> {
extractor.extract_without_semantics(file, "no manifest found");
}
let target_dir = &cfg
.target_dir
.cargo_target_dir
.unwrap_or_else(|| cfg.scratch_dir.join("target"));
for (manifest, files) in map.values().filter(|(_, files)| !files.is_empty()) {
if let Some((ref db, ref vfs)) = RustAnalyzer::load_workspace(manifest, target_dir) {