commit | cdcdcf6d7e62ff09456fe55d9e731bbc7d81fd55 | [log] [tgz] |
---|---|---|
author | Joel Galenson <[email protected]> | Wed Dec 15 17:27:11 2021 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed Dec 15 17:27:11 2021 +0000 |
tree | 2ea0e76815a667dd8445edec8840f25fd980fc12 | |
parent | fa2653f5a3494c56c84db862daa91c351491a6c9 [diff] | |
parent | 12248a1cda1862bf6aeccd9ee972026a70e57b9a [diff] |
Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." am: 4be8607c62 am: 2e531088a9 am: 12248a1cda Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1912836 Change-Id: I479423f0f40890ae201bf09de8a866fd5856a4f8
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.