MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / resolve_sibling_binary

Function resolve_sibling_binary

crates/cli/src/util.rs:367–375  ·  view source on GitHub ↗
(bin_name: &str)

Source from the content-addressed store, hash-verified

365}
366
367pub fn resolve_sibling_binary(bin_name: &str) -> anyhow::Result<PathBuf> {
368 let resolved_exe = std::env::current_exe().context("could not retrieve current exe")?;
369 let bin_path = resolved_exe
370 .parent()
371 .unwrap()
372 .join(bin_name)
373 .with_extension(std::env::consts::EXE_EXTENSION);
374 Ok(bin_path)
375}

Callers 2

execFunction · 0.85
extract_descriptionsFunction · 0.85

Calls 3

joinMethod · 0.80
OkFunction · 0.50
unwrapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…