commit | dd49be57fad4e5af7310a9f8506c1e804e258a4b | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Thu Aug 27 21:50:28 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Aug 27 21:50:28 2020 +0000 |
tree | 8950b023a47cbecb9f23a752bfcb21df1915e309 | |
parent | fe212fa5479742427c258ae9998acd71448c4bd5 [diff] | |
parent | 21cbd3f5072c9b91aad3c5ae521b871ab725648c [diff] |
Fix which/METADATA am: 21cbd3f507 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1413813 Change-Id: I5ec605ed7694745151816a96332ae832696281b6
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.