commit | 89dcd783cd31afb06437fd433a24ada37119bc38 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Tue Aug 24 18:23:55 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Aug 24 18:23:55 2021 +0000 |
tree | 0cea581b7dd011a03558f596e137671c67be5e45 | |
parent | b7d088b1c4ce3aa1e8e211b91445b978f3dc71d8 [diff] | |
parent | e85d2d1d33909dbff8be26b3c4ddaedeb7690c30 [diff] |
Update TEST_MAPPING am: e85d2d1d33 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1806203 Change-Id: I103b3e8fd4d5f1fafd99f124251e13a781917137
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.