which
A Rust equivalent of Unix command "which". Locate installed executable in cross platforms.
Support platforms
- Linux
- Windows
- macOS
Example
To find which rustc exectable binary is using.
use which;
let result = which.unwrap;
assert_eq!;
Errors
By default this crate exposes a failure
based error. This is optional, disable the default
features to get an error type implementing the standard library Error
trait.
Documentation
The documentation is available online.