Find an installed executable on PATH from Rust, like Unix which
open sourceMITfree
which is a Rust crate equivalent to the Unix which command: it locates an installed executable on the PATH, across Linux, Windows, macOS and WASI targets. Environments without system access can plug in their own Sys implementation.
Problems it solves
- check if a program is installed from Rust
- find the path of an executable in a cross-platform Rust CLI
- locate git or rustc from a Rust build script
Features
- locate executables on PATH
- Linux, Windows, macOS and WASI
- pluggable system interface
