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.