commit | ccadfb994b73625519dbfe9c72c8a174b733fc11 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Tue Jul 07 00:50:56 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jul 07 00:50:56 2020 +0000 |
tree | dc23af837f8d718ceef05792cdcf2f7e9fc9a2e5 | |
parent | aacf0ff2a91ce1ab4db7c5cb0c7b6f321bc9b58c [diff] | |
parent | a67390c7f5cda4fb5e866eda4c12819d30d5e7b1 [diff] |
Support building all variants. am: 04f52bafb3 am: a67390c7f5 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1356136 Change-Id: Ifee71ae2af999f9d1f2323e8e478fbe536d708bf
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"));
By default this crate exposes a failure
based error. This is optional, disable the default features to get an error type implementing the standard library Error
trait.
The documentation is available online.