Mark ab/6881855 as merged am: 02e7db2f25

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

Change-Id: I553834878b684a2e102b272ff68b1b857e6f19bc
tree: 28622e968af0c590562acd72339a5215cafd2c6b
  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_MIT
  10. OWNERS
  11. README.md
  12. TEST_MAPPING
  13. appveyor.yml
  14. src/
  15. 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.