commit | e9128a95d47b47efd8f26ddd1ce3074c87680dc0 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Fri Oct 09 03:22:59 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Oct 09 03:22:59 2020 +0000 |
tree | 8950b023a47cbecb9f23a752bfcb21df1915e309 | |
parent | 7145a811393b18879d8c81094ada802be1f2be57 [diff] | |
parent | cbd4aa00cf794856d3b9434c435dc6e69b187fcc [diff] |
[automerger skipped] Skip ab/6749736 in stage. am: cbd4aa00cf -s ours am skip reason: Change-Id I421d8f9d0ae05635241da2db7936761a9cd4ce61 with SHA-1 74fd0b41eb is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/which/+/12797308 Change-Id: Ie6f13a00fe752eb67e51a5ed0887ce33c3436e9e
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.