commit | ebb606a7fbf6c78fd734e0ead92422755cfc6117 | [log] [tgz] |
---|---|---|
author | Haibo Huang <hhb@google.com> | Tue Aug 11 01:35:30 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Aug 11 01:35:30 2020 +0000 |
tree | f9e759189ab9277788562b2f088a6a4248120174 | |
parent | e71d767a0f429197923989b55a5e97192d94306c [diff] | |
parent | 9b29c40588eef2bcbea1def9c855b818c36c67dd [diff] |
Upgrade rust/crates/which to 4.0.2 am: e92abd30fa am: 9b29c40588 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1388913 Change-Id: I9bee48e925935245f84442b029dcf453cc1f4617
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.