Skip to main content

locate_binary

Function locate_binary 

Source
pub fn locate_binary(
    target_dir: &Path,
    bin_name: &str,
    release: bool,
) -> Result<PathBuf>
Expand description

Определяет путь к собранному бинарнику.

Ищет <target_dir>/<release|debug>/<bin_name> с учётом расширения .exe на Windows.