commit | 7145a811393b18879d8c81094ada802be1f2be57 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Thu Aug 27 22:39:47 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Aug 27 22:39:47 2020 +0000 |
tree | 8950b023a47cbecb9f23a752bfcb21df1915e309 | |
parent | 55e94169aee8c7cd206988a3d38d00d22abba767 [diff] | |
parent | 91f26d13c72767a056a1426a96b3489712160209 [diff] |
Fix which/METADATA am: 21cbd3f507 am: dd49be57fa am: 91f26d13c7 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1413813 Change-Id: Idaa9ebaf196553962affeefabc546cdc4ab9c716
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.