Go to file
Nicolas Marier 7ea0c5e80a
fix(finder): import std::fs with the regex feature
The import was necessary when using the regex feature.
2021-07-30 18:05:03 -04:00
.github/workflows change ci trigger condition 2021-07-23 14:27:18 +08:00
src fix(finder): import std::fs with the regex feature 2021-07-30 18:05:03 -04:00
tests feat(lib): allow searching with regular expressions 2021-07-25 13:12:49 -04:00
.gitignore feat(lib): allow searching with regular expressions 2021-07-25 13:12:49 -04:00
Cargo.toml bump version to 4.2.1 2021-07-29 20:49:42 +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.