commit | 89aa1e5a684fd3a11b1000cc9441d4e0c2ff4738 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Wed Apr 14 03:05:33 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Wed Apr 14 03:05:33 2021 +0000 |
tree | cc218f809b980499efdc11c0902cd6c3b2637ab4 | |
parent | fdab9a3bb73819e866fafe11d61f0d6866326c9b [diff] | |
parent | c58a55da91a3394e31961d9481c57257889389a2 [diff] |
Snap for 7280811 from c58a55da91a3394e31961d9481c57257889389a2 to tm-release Change-Id: Ib5ab41bd536cef13de09416f1a1817eeafa4774d
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.