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