commit | 0aeabb49e4f5b52aa8b06e4c94ceb9a3db4a1712 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <[email protected]> | Sun Feb 21 02:45:06 2021 +0000 |
committer | Automerger Merge Worker <[email protected]> | Sun Feb 21 02:45:06 2021 +0000 |
tree | f25debd1f0219119220213160317f9cfc4168432 | |
parent | 4ae6e030e16d36832714f8183b4eecf0d01c72ce [diff] | |
parent | 536e5402863a3c8460ab9d57b1fc51c7584d16b4 [diff] |
Snap for 7160059 from 4c33ad87118132f509afc490d9f9e554b16e8741 to sc-release am: 536e540286 Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/which/+/13646728 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I4e1f69b00b7f91d64ae31d0f0c36e215f32f6cd9
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.