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.
jianglk.darker
7ee447c011
|
4 months ago | |
---|---|---|
.. | ||
src | 4 months ago | |
tests | 4 months ago | |
.cargo_vcs_info.json | 4 months ago | |
Android.bp | 4 months ago | |
Cargo.toml | 4 months ago | |
Cargo.toml.orig | 4 months ago | |
LICENSE | 4 months ago | |
LICENSE.txt | 4 months ago | |
METADATA | 4 months ago | |
MODULE_LICENSE_MIT | 4 months ago | |
OWNERS | 4 months ago | |
README.md | 4 months ago | |
TEST_MAPPING | 4 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.