commit | 165a7dde59e892e1aa973a1da86ac83b85cc9ca4 | [log] [tgz] |
---|---|---|
author | Bob Badour <bbadour@google.com> | Wed Feb 03 18:30:11 2021 -0800 |
committer | Bob Badour <bbadour@google.com> | Fri Feb 05 01:26:41 2021 -0800 |
tree | c28df8e64353eac04ccc92f4e1db45f0bda0164f | |
parent | 02e7db2f2596ece9cc330468b67a8ad7317d8f86 [diff] |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/which Added SPDX-license-identifier-MIT to: Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Id594f41b3d0ba0b73714b2a3e9d7ae24d995a60d
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.