commit | b7d088b1c4ce3aa1e8e211b91445b978f3dc71d8 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Sat Aug 14 06:03:49 2021 +0000 |
committer | Xin Li <delphij@google.com> | Sat Aug 14 06:03:49 2021 +0000 |
tree | ee0741f958fe697978838edb95ab00e50af08beb | |
parent | 86f4c737d3b6723687b79d3d7001d8ac8d53c4b6 [diff] | |
parent | 8c7b8009c7133d49c9c9f68a734e33b5b97baeb8 [diff] |
Mark sc-dev-plus-aosp-without-vendor@7634622 as merged Merged-In: Ia04b5d72f91eeb6f302d6aeb197921f6f2840231 Change-Id: I9b790315f334c3dba68688e79dae3933f38bab91
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.