Go to file
Darren Schroeder 8c3bfcac07
removed spaces
2020-06-22 07:34:06 -05:00
src removed spaces 2020-06-22 07:34:06 -05:00
tests replace failure with std::error:Error and thiserror 2020-05-25 20:37:41 -05:00
.gitignore init commit 2015-10-06 19:24:01 +08:00
.travis.yml Make dependency on "failure" optional, but enabled by default 2019-09-15 15:03:04 +02:00
appveyor.yml Make dependency on "failure" optional, but enabled by default 2019-09-15 15:03:04 +02:00
Cargo.toml bump version to 4.0.0 2020-05-30 20:54:11 +08:00
LICENSE.txt init commit 2015-10-06 19:24:01 +08:00
README.md replace failure with std::error:Error and thiserror 2020-05-25 20:37:41 -05:00

Travis Build Status Appveyor 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.