commit | 54c978d381fcd4212dd0168921ecfb7e46794ccf | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon Dec 20 11:05:33 2021 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon Dec 20 11:05:33 2021 +0000 |
tree | cc218f809b980499efdc11c0902cd6c3b2637ab4 | |
parent | 6280e5b27cc527d8a0889cf64fd7522667a32395 [diff] | |
parent | 0609fb3808cdcc2247b1136e19f0de95b45f0db5 [diff] |
Snap for 8014993 from 0609fb3808cdcc2247b1136e19f0de95b45f0db5 to s-keystone-qcom-release Change-Id: I275ea584d55eee07e9130afce1d6728ff763c176
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.