tree: 47e3bc7d61b88a91ba39513c219dd6aa0da7c447 [path history] [tgz]
  1. src/
  2. tests/
  3. .cargo-checksum.json
  4. appveyor.yml
  5. Cargo.toml
  6. LICENSE.txt
  7. OWNERS
  8. 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.