commit | 2a065e93a540f1e47e96b7fec12fa149b9655048 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Tue Aug 24 20:21:00 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Aug 24 20:21:00 2021 +0000 |
tree | 0cea581b7dd011a03558f596e137671c67be5e45 | |
parent | 171905decc4829713513d29745815242f9e3c632 [diff] | |
parent | fda114085801d58a8d124f76377c3d289a12d378 [diff] |
Update TEST_MAPPING am: e85d2d1d33 am: 89dcd783cd am: f659d3ebc1 am: bbae0b6495 am: fda1140858 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1806203 Change-Id: I5fca1ffbdc04990e7d6a12e31610f9a6060c7d2c
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.