commit | e19c8c561565fcf1fec05e94aefa07728f69409a | [log] [tgz] |
---|---|---|
author | Elliott Hughes <[email protected]> | Mon Apr 12 23:44:53 2021 +0000 |
committer | Automerger Merge Worker <[email protected]> | Mon Apr 12 23:44:53 2021 +0000 |
tree | cc218f809b980499efdc11c0902cd6c3b2637ab4 | |
parent | 559ea10b606b180a8075ba05db87e4d19465a75c [diff] | |
parent | 3f00182ae337968fd9064d8f3cc770221386a82c [diff] |
Upgrade rust/crates/which to 4.1.0 am: d7bcf43786 am: b904996c6a am: 385a96330e am: 3f00182ae3 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1662641 Change-Id: I9f44939ec21047471cce37b8613c512767bf8c8e
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.