commit | 8ace0e42407eb58ac37f5cb00af73f8512d484d7 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Sat Aug 14 06:57:06 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Aug 14 06:57:06 2021 +0000 |
tree | ee0741f958fe697978838edb95ab00e50af08beb | |
parent | ff8245d7b3988f916e42a6d6ca3183b852e85f4a [diff] | |
parent | c6b6378a8842c576f08a6995fc0309eaba5d0431 [diff] |
[automerger skipped] Mark sc-dev-plus-aosp-without-vendor@7634622 as merged am: b7d088b1c4 -s ours am: ffde23c224 -s ours am: c6b6378a88 -s ours am skip reason: Merged-In Ia04b5d72f91eeb6f302d6aeb197921f6f2840231 with SHA-1 8c7b8009c7 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/which/+/15571581 Change-Id: I57785147d508e11d88d4435e552c6da12cc8607c
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.