commit | 65c912b78577f7c4f11c81396f988cd55d2c3b62 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <[email protected]> | Wed Apr 14 02:34:04 2021 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed Apr 14 02:34:04 2021 +0000 |
tree | cc218f809b980499efdc11c0902cd6c3b2637ab4 | |
parent | 0aeabb49e4f5b52aa8b06e4c94ceb9a3db4a1712 [diff] | |
parent | a8650a5fac2a1639107016b2e5891bdc3eddf76a [diff] |
Snap for 7280565 from 3f00182ae337968fd9064d8f3cc770221386a82c to sc-release am: a8650a5fac Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/which/+/14180038 Change-Id: If05ac310e003964da1d7f365f40f3bc82254aea2
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.