commit | e71d767a0f429197923989b55a5e97192d94306c | [log] [tgz] |
---|---|---|
author | Haibo Huang <hhb@google.com> | Wed Jul 15 18:23:28 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Jul 15 18:23:28 2020 +0000 |
tree | 6a70b20b99ff51d93896380d942ea1628c1ad441 | |
parent | 4ef42a2b407b9e693ad295cde0b5af3e225b24d5 [diff] | |
parent | ed9bfb672be8928aa0723b6c03d30457e8942acf [diff] |
Upgrade rust/crates/which to 4.0.1 am: 8b6eb89f36 am: ed9bfb672b Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1360861 Change-Id: If5c5964d87c300a6625638bbeb9308bb0dcb120e
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.