commit | b0ea2bfac5e61f78918bd674119fa95303f7c570 | [log] [tgz] |
---|---|---|
author | Bob Badour <bbadour@google.com> | Fri Feb 05 21:36:32 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Feb 05 21:36:32 2021 +0000 |
tree | c28df8e64353eac04ccc92f4e1db45f0bda0164f | |
parent | 02e7db2f2596ece9cc330468b67a8ad7317d8f86 [diff] | |
parent | 165a7dde59e892e1aa973a1da86ac83b85cc9ca4 [diff] |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/which am: 165a7dde59 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1576007 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I3e18968a1e90abb48fb622f55f90a00d678e6979
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.