commit | 4ae6e030e16d36832714f8183b4eecf0d01c72ce | [log] [tgz] |
---|---|---|
author | android-build-team Robot <[email protected]> | Wed Feb 17 04:31:50 2021 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed Feb 17 04:31:50 2021 +0000 |
tree | f25debd1f0219119220213160317f9cfc4168432 | |
parent | 4883c2f4da2e836e354c3574ee83af757136a1f6 [diff] | |
parent | b4fcfd1e11c7907423a2eb8ad1296a43c8c01b24 [diff] |
Snap for 7149879 from 4f1b9127560d19de63e8234972459861285e8f84 to sc-release am: b4fcfd1e11 Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/which/+/13594216 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ia2d15fc5aefa2ebcae9bf5fe17bd355903515307
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.