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