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.