Crates.io | whereismybin |
lib.rs | whereismybin |
version | 0.0.1 |
source | src |
created_at | 2022-12-23 13:47:04.193038 |
updated_at | 2022-12-23 13:47:04.193038 |
description | Locates installed executable in PATH. |
homepage | |
repository | https://github.com/vadorovsky/whereismybin |
max_upload_size | |
id | 744549 |
size | 15,800 |
Locates installed executable inside directories specified in the PATH environment variable.
The goals of this implementations are:
whereismybin can be used as a library. Example:
use std::process::Command;
use whereismybin::whereismybin;
let my_tool = whereismybin("my-tool").expect("Could not find my-tool");
let output = Command::new(my_tool)
.arg("--some-arg")
.output()
.expect("Failed to execute process");
let content = output.stdout;
The which-rs crate is great, but unfortunately it doesn't run on Miri and depends on libc crate. whereismybin aims to provide more lightweight alternative.
License: Apache-2.0