commit | cbaecfc8bb3cd67d24d7e20408008637fd52a9d3 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Tue Jul 07 01:45:38 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jul 07 01:45:38 2020 +0000 |
tree | dc23af837f8d718ceef05792cdcf2f7e9fc9a2e5 | |
parent | 1ebbc8dee5a25fbc596c9baa576c19de98d87135 [diff] | |
parent | 3989d4abf1f77a66c80877c2d7ad3c48d809e3a1 [diff] |
Support building all variants. am: 04f52bafb3 am: a67390c7f5 am: ccadfb994b am: 3989d4abf1 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1356136 Change-Id: If9c9b32845a85a73e2fffaadfa924ca4cb3d65f8
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.