[automerger skipped] Mark sc-dev-plus-aosp-without-vendor@7634622 as merged am: b7d088b1c4 -s ours am: ffde23c224 -s ours am: c6b6378a88 -s ours am: 8ace0e4240 -s ours

am skip reason: Merged-In Ia04b5d72f91eeb6f302d6aeb197921f6f2840231 with SHA-1 8c7b8009c7 is already in history

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

Change-Id: I107ece922d3f01eadd29de5f567a7c4421caa48f
tree: ee0741f958fe697978838edb95ab00e50af08beb
  1. .github/
  2. src/
  3. tests/
  4. .cargo_vcs_info.json
  5. .gitignore
  6. Android.bp
  7. Cargo.toml
  8. Cargo.toml.orig
  9. LICENSE.txt
  10. METADATA
  11. MODULE_LICENSE_MIT
  12. OWNERS
  13. README.md
  14. TEST_MAPPING
README.md

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.