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