commit | ddd132a1873f3b50be426e4be2269961a1b40dac | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Thu Nov 26 02:03:35 2020 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Thu Nov 26 02:03:35 2020 +0000 |
tree | 28622e968af0c590562acd72339a5215cafd2c6b | |
parent | dfa4f52101164a5f4da2a29c934ddd3c60890753 [diff] | |
parent | 0c2d01aac17e62d523d8676e3b3295f2502209bc [diff] |
Snap for 6995927 from 0c2d01aac17e62d523d8676e3b3295f2502209bc to sc-release Change-Id: I3b1982b1af61690218219be2606ec82a68911ea0
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.