Skip to main content

resolve_cargo_path

Function resolve_cargo_path 

Source
pub fn resolve_cargo_path(explicit: Option<&Path>) -> PathBuf
Expand description

Resolve the cargo binary path, checking common locations.

launchd services run with a minimal PATH that excludes ~/.cargo/bin, so we resolve the absolute path at startup rather than relying on PATH.