Go to file
2021-03-28 17:27:34 +08:00
.github/workflows Reduce redundancy in actions file 2021-03-17 16:06:18 -06:00
src Upgrade to Rust 2018, closes #28 (#33) 2021-03-17 10:59:33 -06:00
tests Fix formatting for CI 2021-03-10 14:11:58 -07:00
.gitignore init commit 2015-10-06 19:24:01 +08:00
Cargo.toml bump version to 4.1.0 2021-03-28 17:27:34 +08:00
LICENSE.txt init commit 2015-10-06 19:24:01 +08:00
README.md Fix README badges 2021-03-17 11:16:28 -06:00

Build Status

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.