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