executable_path_finder

Crates.ioexecutable_path_finder
lib.rsexecutable_path_finder
version0.0.3
sourcesrc
created_at2024-09-26 07:20:59.608795
updated_at2024-09-26 08:51:09.135174
descriptionA utility library for finding executable paths
homepagehttps://github.com/washanhanzi/executable_path_finder
repositoryhttps://github.com/washanhanzi/executable_path_finder
max_upload_size
id1387101
size19,724
Jingyu (washanhanzi)

documentation

README

executable_path_finder

find executable path

use executable_path_finder::{find, find_with_cargo_home, find_in_env, find_in_path};

fn main() {
    //find in PATH and env vars
    let path = find("cargo");
    println!("{:?}", path);

    //find in PATH, env vars, and cargo home
    let path = find_with_cargo_home("cargo");
    println!("{:?}", path);

    //find in PATH
    let path = find_in_path("cargo");
    println!("{:?}", path);

    //find in env vars
    let path = find_in_env("cargo");
    println!("{:?}", path);
}
Commit count: 9

cargo fmt