commit | b4fcfd1e11c7907423a2eb8ad1296a43c8c01b24 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <[email protected]> | Wed Feb 17 03:17:28 2021 +0000 |
committer | android-build-team Robot <[email protected]> | Wed Feb 17 03:17:28 2021 +0000 |
tree | f25debd1f0219119220213160317f9cfc4168432 | |
parent | d56e439d9b34bea696b2fc4703f966cf936082df [diff] | |
parent | 4f1b9127560d19de63e8234972459861285e8f84 [diff] |
Snap for 7149879 from 4f1b9127560d19de63e8234972459861285e8f84 to sc-release Change-Id: Ief88e8f536b3d34ca2cfb3a648c72f07dbeb9826
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.