which 0.1.0

A Rust equivalent of Unix command "which".
Documentation

which

A Rust equivalent of Unix command "which".

Exmaple

To find wihch rustc exectable binary is using.

use which::which;

let result = which::which("rustc").unwrap();
assert_eq!(result, PathBuf::from("/usr/bin/rustc"));

Documentation

The documentation is available online.