commit | ed6ff50032652466127e320cc2e4873d71b2c7cf | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Fri Aug 13 01:51:23 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Aug 13 01:51:23 2021 +0000 |
tree | ee0741f958fe697978838edb95ab00e50af08beb | |
parent | 8c7b8009c7133d49c9c9f68a734e33b5b97baeb8 [diff] | |
parent | 86f4c737d3b6723687b79d3d7001d8ac8d53c4b6 [diff] |
Upgrade rust/crates/which to 4.2.2 am: 9e4f7ef037 am: 86f4c737d3 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1790955 Change-Id: Idde612f7bf24f4929dd323f2cf19e372a1d00627
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.