MCPcopy Create free account
hub / github.com/concensure/Semantic / resolve_rust_analyzer_binary

Function resolve_rust_analyzer_binary

semantic_rust/src/rust_analyzer.rs:211–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209}
210
211fn 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
227fn parse_workspace_symbols(repo_root: &Path, response: Value) -> Vec<RustAnalyzerSymbol> {
228 response

Callers 2

is_availableFunction · 0.85
startMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…