mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
.. | ||
src | ||
.cargo-checksum.json | ||
.cargo-ok | ||
Cargo.toml | ||
LICENSE.txt | ||
README.md |
which
A Rust equivalent of Unix command "which".
Example
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"));
Documentation
The documentation is available online.