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