| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| .github/workflows/ | 03-May-2024 | - | 29 | 23 | ||
| src/ | 03-May-2024 | - | 637 | 442 | ||
| tests/ | 03-May-2024 | - | 336 | 271 | ||
| .cargo_vcs_info.json | D | 03-May-2024 | 74 | 6 | 5 | |
| .gitignore | D | 03-May-2024 | 18 | 3 | 2 | |
| Android.bp | D | 03-May-2024 | 847 | 36 | 31 | |
| Cargo.toml | D | 03-May-2024 | 1.1 KiB | 32 | 29 | |
| Cargo.toml.orig | D | 03-May-2024 | 523 | 20 | 17 | |
| LICENSE | D | 03-May-2024 | 1 KiB | 20 | 16 | |
| LICENSE.txt | D | 03-May-2024 | 1 KiB | 20 | 16 | |
| METADATA | D | 03-May-2024 | 419 | 20 | 19 | |
| MODULE_LICENSE_MIT | D | 03-May-2024 | 0 | |||
| OWNERS | D | 03-May-2024 | 40 | 2 | 1 | |
| README.md | D | 03-May-2024 | 583 | 27 | 16 | |
| TEST_MAPPING | D | 03-May-2024 | 257 | 15 | 14 |
README.md
1[](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