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