commit | 0ed0506f8e0e09a5fc9203ba26aede2228d96b6f | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon Jan 31 01:51:23 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon Jan 31 01:51:23 2022 +0000 |
tree | 2ea0e76815a667dd8445edec8840f25fd980fc12 | |
parent | 7dc4fcdf4bf41d65442e1339e79099e93ab40fb4 [diff] | |
parent | fb8ad6094018b0512392a15370cd82a1e4d16f95 [diff] |
Snap for 8133678 from fb8ad6094018b0512392a15370cd82a1e4d16f95 to t-keystone-qcom-release Change-Id: If23e0bdef9787fe1833b1c3a736796eb283b3fc8
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.