Bug: 153120169

Clone this repo:
  1. 02e7db2 Mark ab/6881855 as merged by Xin Li · 8 weeks ago master
  2. 93b9b76 TEST_MAPPING: test dependers of this crate am: 73fb21b4c0 by Jeff Vander Stoep · 2 months ago
  3. 73fb21b TEST_MAPPING: test dependers of this crate by Jeff Vander Stoep · 2 months ago
  4. 7690529 Use MIT license type, specified in Cargo.toml am: 2aa894e207 by Chih-Hung Hsieh · 3 months ago
  5. 2aa894e Use MIT license type, specified in Cargo.toml by Chih-Hung Hsieh · 3 months ago

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.