commit | 21cbd3f5072c9b91aad3c5ae521b871ab725648c | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Tue Aug 25 20:49:32 2020 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Tue Aug 25 20:49:32 2020 -0700 |
tree | 8950b023a47cbecb9f23a752bfcb21df1915e309 | |
parent | 9b29c40588eef2bcbea1def9c855b818c36c67dd [diff] |
Fix which/METADATA Bug: 166324735 Test: make Change-Id: I3d23c629ba43a46685d6be5ef67d884448ca1e95
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.