commit | 96a916ec970fa64fecb161ca37967f22f3dc8123 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Jun 15 21:46:06 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Jun 15 21:46:06 2022 +0000 |
tree | cc218f809b980499efdc11c0902cd6c3b2637ab4 | |
parent | 7f5275500f9334749cfd018689bd74e8726fbc86 [diff] | |
parent | e19c8c561565fcf1fec05e94aefa07728f69409a [diff] |
Snap for 8730993 from e19c8c561565fcf1fec05e94aefa07728f69409a to mainline-tzdata3-release Change-Id: Id6086bcc416fda96b01a69c878313948221a703b
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.