Go to file
Harry Fei f79d01ce1d
Merge pull request #26 from Atul9/add-cargofmt-to-travis-config
Add cargo fmt to travis build config
2020-08-10 12:28:46 +08:00
src Support symlinked executables on Windows 2020-07-29 16:35:41 -07: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 Add cargo fmt to travis build config 2020-08-07 23:38:03 +05:30
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.2 2020-08-04 22:45:34 +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.