• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.github/workflows/23-Nov-2023-2923

src/23-Nov-2023-637442

tests/23-Nov-2023-336271

.cargo_vcs_info.jsonD23-Nov-202374 65

.gitignoreD23-Nov-202318 32

Android.bpD23-Nov-2023847 3631

Cargo.tomlD23-Nov-20231.1 KiB3229

Cargo.toml.origD23-Nov-2023523 2017

LICENSED23-Nov-20231 KiB2016

LICENSE.txtD23-Nov-20231 KiB2016

METADATAD23-Nov-2023419 2019

MODULE_LICENSE_MITD23-Nov-20230

OWNERSD23-Nov-202340 21

README.mdD23-Nov-2023583 2716

TEST_MAPPINGD23-Nov-2023257 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