commit | 1a67066696a041d0418ee78334850f3412ea54d3 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Thu Aug 27 18:30:07 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Aug 27 18:30:07 2020 +0000 |
tree | f9e759189ab9277788562b2f088a6a4248120174 | |
parent | ebb606a7fbf6c78fd734e0ead92422755cfc6117 [diff] | |
parent | fe212fa5479742427c258ae9998acd71448c4bd5 [diff] |
[automerger skipped] Mark Android R (rvc-dev-plus-aosp-without-vendor@6692709) as merged am: fe212fa547 -s ours am skip reason: Change-Id If5c5964d87c300a6625638bbeb9308bb0dcb120e with SHA-1 e71d767a0f is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/which/+/12469670 Change-Id: If15a8922eba74e2de4701ad0e6576e3bdae7928b
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.