commit | c58a55da91a3394e31961d9481c57257889389a2 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <[email protected]> | Mon Apr 12 23:43:10 2021 +0000 |
committer | Automerger Merge Worker <[email protected]> | Mon Apr 12 23:43:10 2021 +0000 |
tree | cc218f809b980499efdc11c0902cd6c3b2637ab4 | |
parent | a16292fe0c7ea05507471b89efb40d6468d2af16 [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: I3e92934165e1ff5f184132827b0aa4e2f80e42d7
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.