Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.github/workflows/ | 23-Nov-2023 | - | 29 | 23 | ||
src/ | 23-Nov-2023 | - | 637 | 442 | ||
tests/ | 23-Nov-2023 | - | 336 | 271 | ||
.cargo_vcs_info.json | D | 23-Nov-2023 | 74 | 6 | 5 | |
.gitignore | D | 23-Nov-2023 | 18 | 3 | 2 | |
Android.bp | D | 23-Nov-2023 | 847 | 36 | 31 | |
Cargo.toml | D | 23-Nov-2023 | 1.1 KiB | 32 | 29 | |
Cargo.toml.orig | D | 23-Nov-2023 | 523 | 20 | 17 | |
LICENSE | D | 23-Nov-2023 | 1 KiB | 20 | 16 | |
LICENSE.txt | D | 23-Nov-2023 | 1 KiB | 20 | 16 | |
METADATA | D | 23-Nov-2023 | 419 | 20 | 19 | |
MODULE_LICENSE_MIT | D | 23-Nov-2023 | 0 | |||
OWNERS | D | 23-Nov-2023 | 40 | 2 | 1 | |
README.md | D | 23-Nov-2023 | 583 | 27 | 16 | |
TEST_MAPPING | D | 23-Nov-2023 | 257 | 15 | 14 |
README.md
1[![Build Status](https://github.com/harryfei/which-rs/actions/workflows/rust.yml/badge.svg)](https://github.com/harryfei/which-rs/actions/workflows/rust.yml) 2 3# which 4 5A Rust equivalent of Unix command "which". Locate installed executable in cross platforms. 6 7## Support platforms 8 9* Linux 10* Windows 11* macOS 12 13## Example 14 15To find which rustc exectable binary is using. 16 17``` rust 18use which::which; 19 20let result = which::which("rustc").unwrap(); 21assert_eq!(result, PathBuf::from("/usr/bin/rustc")); 22``` 23 24## Documentation 25 26The documentation is [available online](https://docs.rs/which/). 27