cargo_util::paths

Function resolve_executable

Source
pub fn resolve_executable(exec: &Path) -> Result<PathBuf>
Expand description

Returns the absolute path of where the given executable is located based on searching the PATH environment variable.

Returns an error if it cannot be found.