commit | 3f1d432e13caa2d68bfe7b39e55d16b3906ecda3 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Mon Aug 30 21:08:03 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Aug 30 21:08:03 2021 +0000 |
tree | 5d9bc0f319f76406eb6c70c863eb9c03bcb5cb2d | |
parent | f659d3ebc1df0379d8f3c66d1e5c490edc3cddd1 [diff] | |
parent | 915d915d5dad3bab02113aad69e62f43bd0b75d1 [diff] |
Update TEST_MAPPING am: 8b158cbe0d am: 915d915d5d Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1813685 Change-Id: Idf9b068de5ea76f3dc4a430da663ccc4f844ca57
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.