commit | 536e5402863a3c8460ab9d57b1fc51c7584d16b4 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Sun Feb 21 00:06:40 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Sun Feb 21 00:06:40 2021 +0000 |
tree | f25debd1f0219119220213160317f9cfc4168432 | |
parent | b4fcfd1e11c7907423a2eb8ad1296a43c8c01b24 [diff] | |
parent | 4c33ad87118132f509afc490d9f9e554b16e8741 [diff] |
Snap for 7160059 from 4c33ad87118132f509afc490d9f9e554b16e8741 to sc-release Change-Id: Iae0031fab52d25b2dd97a4f4c570621e3b6b0637
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.