which
A Rust equivalent of Unix command "which".
Example
To find which rustc exectable binary is using.
use which;
let result = which.unwrap;
assert_eq!;
Documentation
The documentation is available online.
A Rust equivalent of Unix command "which".
To find which rustc exectable binary is using.
use which::which;
let result = which::which("rustc").unwrap();
assert_eq!(result, PathBuf::from("/usr/bin/rustc"));
The documentation is available online.