which
A Rust equivalent of Unix command "which". Locate installed execuable in cross platforms.
Support platforms
- Linux
- Windows
- macOS
Example
To find which rustc exectable binary is using. Locate installed execuable in cross platforms.
use which;
let result = which.unwrap;
assert_eq!;
Documentation
The documentation is available online.