We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f21e479 commit fa0d962Copy full SHA for fa0d962
tools/rust_analyzer/rust_project.rs
@@ -252,6 +252,11 @@ pub enum RunnableKind {
252
TestOne,
253
}
254
255
+fn try_symlink(f: &String) -> String {
256
+ std::fs::read_link(f).map(|v| v.to_string_lossy().to_string())
257
+ .unwrap_or(f.clone())
258
+}
259
+
260
pub fn assemble_rust_project(
261
bazel: &Utf8Path,
262
workspace: &Utf8Path,
@@ -337,7 +342,7 @@ pub fn assemble_rust_project(
337
342
338
343
project.crates.push(Crate {
339
344
display_name: Some(c.display_name.clone()),
340
- root_module: c.root_module.clone(),
345
+ root_module: try_symlink(&c.root_module),
341
346
edition: c.edition.clone(),
347
deps: c
348
.deps
0 commit comments