[automerger skipped] Mark Android R (rvc-dev-plus-aosp-without-vendor@6692709) as merged am: fe212fa547 -s ours am: 1a67066696 -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: Ib98c8993a8d7ac01f2cadc26ed7babbc6d525925
tree: f9e759189ab9277788562b2f088a6a4248120174
  1. .cargo_vcs_info.json
  2. .gitignore
  3. .travis.yml
  4. Android.bp
  5. Cargo.toml
  6. Cargo.toml.orig
  7. LICENSE.txt
  8. METADATA
  9. MODULE_LICENSE_BSD_LIKE
  10. OWNERS
  11. README.md
  12. appveyor.yml
  13. src/
  14. tests/
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.