commit | 93b9b764e081513ba334500b3d9fec51dd0dc5cb | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Thu Nov 05 14:10:41 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Nov 05 14:10:41 2020 +0000 |
tree | 28622e968af0c590562acd72339a5215cafd2c6b | |
parent | 76905295b21f15aaab2bc04555ea01b683c8c1b5 [diff] | |
parent | 73fb21b4c08b94a2fe0656b9f9e1feb62d6bd0a4 [diff] |
TEST_MAPPING: test dependers of this crate am: 73fb21b4c0 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1486246 Change-Id: Idc1f25df3535d5a4a2bfe75f064ddc0ddd8b6b96
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.