Upgrade rust/crates/which to 4.0.1 am: 8b6eb89f36

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

Change-Id: I50b4748584f350c02a8dc8e679e3b2ae288a260e
tree: 6a70b20b99ff51d93896380d942ea1628c1ad441
  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.