()
| 209 | } |
| 210 | |
| 211 | fn resolve_rust_analyzer_binary() -> Option<PathBuf> { |
| 212 | let output = Command::new("rustup") |
| 213 | .args(["which", "rust-analyzer"]) |
| 214 | .stdout(Stdio::piped()) |
| 215 | .stderr(Stdio::null()) |
| 216 | .output() |
| 217 | .ok()?; |
| 218 | if output.status.success() { |
| 219 | let path = String::from_utf8_lossy(&output.stdout).trim().to_string(); |
| 220 | if !path.is_empty() { |
| 221 | return Some(PathBuf::from(path)); |
| 222 | } |
| 223 | } |
| 224 | Some(PathBuf::from("rust-analyzer")) |
| 225 | } |
| 226 | |
| 227 | fn parse_workspace_symbols(repo_root: &Path, response: Value) -> Vec<RustAnalyzerSymbol> { |
| 228 | response |
no outgoing calls
no test coverage detected
searching dependent graphs…