MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / cargo_bin

Function cargo_bin

command/src/main.rs:1079–1088  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1077}
1078
1079fn cargo_bin() -> Result<String> {
1080 let res = if let Ok(cargo_home) = env::var("CARGO_HOME") {
1081 format!("{cargo_home}/bin")
1082 } else if let Ok(home) = env::var("HOME") {
1083 format!("{home}/.cargo/bin")
1084 } else {
1085 anyhow::bail!("Fail to parse cargo home")
1086 };
1087 Ok(res)
1088}
1089
1090fn load_default_argv(
1091 args: &mut Vec<String>,

Callers 2

mainFunction · 0.85
run_debuggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected