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