commit | ae19e2ff189b59fa49ecae8d01e7589cf8e845c5 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Aug 14 05:06:16 2021 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Aug 14 05:06:16 2021 +0000 |
tree | ee0741f958fe697978838edb95ab00e50af08beb | |
parent | 27963a8f0916f550ff37a4306946f4a13b84f2bd [diff] | |
parent | eae296d80fc703125592a9f0063e12948f4c8343 [diff] |
Snap for 7641883 from eae296d80fc703125592a9f0063e12948f4c8343 to tm-release Change-Id: Iccbe2f71e14e682e0abcb9371541474c81bc05d4
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.