commit | 385a96330e0faea05f67faf09e5bdd920cb10dfa | [log] [tgz] |
---|---|---|
author | Elliott Hughes <[email protected]> | Mon Apr 12 22:18:49 2021 +0000 |
committer | Automerger Merge Worker <[email protected]> | Mon Apr 12 22:18:49 2021 +0000 |
tree | cc218f809b980499efdc11c0902cd6c3b2637ab4 | |
parent | 520173858165dc6fd4bc3369b63eef0ad4014da9 [diff] | |
parent | b904996c6a5b5df1ef990d50331ede25f91b196f [diff] |
Upgrade rust/crates/which to 4.1.0 am: d7bcf43786 am: b904996c6a Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1662641 Change-Id: Ia174bc4c23c822d606f25f628cf5a8bbae160788
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.