whereismybin
Locates installed executable inside directories specified in the PATH environment variable.
The goals of this implementations are:
- No dependencies except the standard library.
- No unsafe code, no syscalls, no calls to libc.
- Compatibility with Miri.
Example
whereismybin can be used as a library. Example:
use Command;
use whereismybin;
let my_tool = whereismybin.expect;
let output = new
.arg
.output
.expect;
let content = output.stdout;
Why not which-rs?
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