commit | e0b59f8a96fa4eea9b57760a941a1b8cfaf2ca9d | [log] [tgz] |
---|---|---|
author | Haibo Huang <hhb@google.com> | Wed Jul 15 19:23:31 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Jul 15 19:23:31 2020 +0000 |
tree | 6a70b20b99ff51d93896380d942ea1628c1ad441 | |
parent | dc74e17afde3d8bb4e77070bc06c6a5865e5269d [diff] | |
parent | 6abc81d54074f9dac08db0a0bec8181f3301f5ee [diff] |
Upgrade rust/crates/which to 4.0.1 am: 8b6eb89f36 am: ed9bfb672b am: e71d767a0f am: 74fd0b41eb am: 6abc81d540 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1360861 Change-Id: I8e173c6c12962627dd5a7328b00107ba471787e6
A Rust equivalent of Unix command "which". Locate installed executable in cross platforms.
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"));
The documentation is available online.