[automerger skipped] Mark Android R (rvc-dev-plus-aosp-without-vendor@6692709) as merged am: fe212fa547 -s ours am: 1a67066696 -s ours am: 55e94169ae -s ours

am skip reason: Change-Id If5c5964d87c300a6625638bbeb9308bb0dcb120e with SHA-1 e71d767a0f is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/which/+/12469670

Change-Id: Iba57bb8294bda92f71d7cb042df9b85c587781f7
tree: f9e759189ab9277788562b2f088a6a4248120174
  1. src/
  2. tests/
  3. .cargo_vcs_info.json
  4. .gitignore
  5. .travis.yml
  6. Android.bp
  7. appveyor.yml
  8. Cargo.toml
  9. Cargo.toml.orig
  10. LICENSE.txt
  11. METADATA
  12. MODULE_LICENSE_BSD_LIKE
  13. OWNERS
  14. README.md
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.