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