commit | 2e531088a92bf791e86b097d8212551708e919f9 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Wed Dec 15 16:02:01 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Dec 15 16:02:01 2021 +0000 |
tree | 2ea0e76815a667dd8445edec8840f25fd980fc12 | |
parent | 2a37e1776d5a5987fd0e7e1380abf2cd86ab2fa8 [diff] | |
parent | 4be8607c6294ac1430edb4a2f42563dae5130239 [diff] |
Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." am: 4be8607c62 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1912836 Change-Id: I6e7bc718a80cdc6fbdf179898ae71ad1de986ba2
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.