• Home
Name
Date
Size
#Lines
LOC

..--

.github/workflows/03-May-2024-2923

src/03-May-2024-637442

tests/03-May-2024-336271

.cargo_vcs_info.jsonD03-May-202474 65

.gitignoreD03-May-202418 32

Android.bpD03-May-2024847 3631

Cargo.tomlD03-May-20241.1 KiB3229

Cargo.toml.origD03-May-2024523 2017

LICENSED03-May-20241 KiB2016

LICENSE.txtD03-May-20241 KiB2016

METADATAD03-May-2024419 2019

MODULE_LICENSE_MITD03-May-20240

OWNERSD03-May-202440 21

README.mdD03-May-2024583 2716

TEST_MAPPINGD03-May-2024257 1514

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