commit | ff8245d7b3988f916e42a6d6ca3183b852e85f4a | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Fri Aug 13 03:12:43 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Aug 13 03:12:43 2021 +0000 |
tree | ee0741f958fe697978838edb95ab00e50af08beb | |
parent | d1f21a518da6259761da0e31870c0910bfb767ee [diff] | |
parent | c0a4e4addc7f57818a04cde4594a0b5867e6ceb2 [diff] |
Upgrade rust/crates/which to 4.2.2 am: 9e4f7ef037 am: 86f4c737d3 am: ed6ff50032 am: c0a4e4addc Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1790955 Change-Id: Iaec7eb862384db7e6fd9bf3fb2e5758061650a3a
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.