commit | fa2653f5a3494c56c84db862daa91c351491a6c9 | [log] [tgz] |
---|---|---|
author | Joel Galenson <[email protected]> | Mon Aug 30 21:50:15 2021 +0000 |
committer | Automerger Merge Worker <[email protected]> | Mon Aug 30 21:50:15 2021 +0000 |
tree | 5d9bc0f319f76406eb6c70c863eb9c03bcb5cb2d | |
parent | fda114085801d58a8d124f76377c3d289a12d378 [diff] | |
parent | 2a37e1776d5a5987fd0e7e1380abf2cd86ab2fa8 [diff] |
Update TEST_MAPPING am: 8b158cbe0d am: 915d915d5d am: 3f1d432e13 am: 2a37e1776d Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1813685 Change-Id: I1cb91d78e30a8ee66b1381719dcdcabc8ae2cc22
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.