tree: e5dc69517c30c5926a6e3e3f39397baf05a430fc [path history] [tgz]
  1. src/
  2. tests/
  3. .cargo-checksum.json
  4. .cargo_vcs_info.json
  5. .travis.yml
  6. appveyor.yml
  7. BUILD.bazel
  8. Cargo.toml
  9. Cargo.toml.orig
  10. LICENSE.txt
  11. README.md
third_party/rust_crates/vendor/which-4.0.2/README.md

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.