You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
7 months ago | |
---|---|---|
.. | ||
src | 7 months ago | |
tests | 7 months ago | |
.cargo_vcs_info.json | 7 months ago | |
Android.bp | 7 months ago | |
Cargo.toml | 7 months ago | |
Cargo.toml.orig | 7 months ago | |
LICENSE | 7 months ago | |
LICENSE.txt | 7 months ago | |
METADATA | 7 months ago | |
MODULE_LICENSE_MIT | 7 months ago | |
OWNERS | 7 months ago | |
README.md | 7 months ago | |
TEST_MAPPING | 7 months ago |
README.md
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::which;
let result = which::which("rustc").unwrap();
assert_eq!(result, PathBuf::from("/usr/bin/rustc"));
Documentation
The documentation is available online.