commit | ed9bfb672be8928aa0723b6c03d30457e8942acf | [log] [tgz] |
---|---|---|
author | Haibo Huang <hhb@google.com> | Wed Jul 15 18:03:49 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Jul 15 18:03:49 2020 +0000 |
tree | 6a70b20b99ff51d93896380d942ea1628c1ad441 | |
parent | 1068c3b2ef071a9c3166512617d8e3bad12265f4 [diff] | |
parent | 8b6eb89f36d32d6c35dea1710c284856b67b9293 [diff] |
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
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.