commit | b87449c92a519fd7d0b875bb059bcf002e0a6152 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Sat Feb 06 04:05:37 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Sat Feb 06 04:05:37 2021 +0000 |
tree | c28df8e64353eac04ccc92f4e1db45f0bda0164f | |
parent | 0c2d01aac17e62d523d8676e3b3295f2502209bc [diff] | |
parent | ddcf0ad1d4aceddbe9cd7a1e7a07aad85799b600 [diff] |
Snap for 7128347 from ddcf0ad1d4aceddbe9cd7a1e7a07aad85799b600 to tm-release Change-Id: Ia95bcc67052e8556204d1e54105aa1e1c2204510
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.