commit | 614723e4670d66905d8f9e9c20cb1d485853b9d0 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <[email protected]> | Sun Feb 21 00:06:20 2021 +0000 |
committer | android-build-team Robot <[email protected]> | Sun Feb 21 00:06:20 2021 +0000 |
tree | f25debd1f0219119220213160317f9cfc4168432 | |
parent | 20b107d6e11876256d5e58a435b9e62dc80d051b [diff] | |
parent | 4c33ad87118132f509afc490d9f9e554b16e8741 [diff] |
Snap for 7160059 from 4c33ad87118132f509afc490d9f9e554b16e8741 to sc-v2-release Change-Id: I17a2a4e7504d4b6ed2574856c95fbc8451ad880d
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.