commit | a67390c7f5cda4fb5e866eda4c12819d30d5e7b1 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Tue Jul 07 00:35:18 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jul 07 00:35:18 2020 +0000 |
tree | dc23af837f8d718ceef05792cdcf2f7e9fc9a2e5 | |
parent | f2f95748422b349a3f3ef4ea3b0b55faa4d4ea44 [diff] | |
parent | 04f52bafb378c9ff04c70e2526a8ee33fe910d5f [diff] |
Support building all variants. am: 04f52bafb3 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1356136 Change-Id: I57d76c5324430f9e82045ee910def3402335da7f
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.