commit | e8f51e6290cd2360e303c28e6062b1666f163c5b | [log] [tgz] |
---|---|---|
author | android-build-team Robot <[email protected]> | Sun Feb 21 00:05:53 2021 +0000 |
committer | android-build-team Robot <[email protected]> | Sun Feb 21 00:05:53 2021 +0000 |
tree | f25debd1f0219119220213160317f9cfc4168432 | |
parent | 11e6d0d7a0796ec9dd00809a6a8fbd9ce1a031d0 [diff] | |
parent | 4c33ad87118132f509afc490d9f9e554b16e8741 [diff] |
Snap for 7160059 from 4c33ad87118132f509afc490d9f9e554b16e8741 to sc-d1-release Change-Id: Ifd8aa0f95744bf2033764e0ceaf3e449f3baf309
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.