commit | 04f52bafb378c9ff04c70e2526a8ee33fe910d5f | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Mon Jul 06 13:34:55 2020 -0700 |
committer | Matthew Maurer <mmaurer@google.com> | Mon Jul 06 13:34:55 2020 -0700 |
tree | dc23af837f8d718ceef05792cdcf2f7e9fc9a2e5 | |
parent | f2f95748422b349a3f3ef4ea3b0b55faa4d4ea44 [diff] |
Support building all variants. Bug: 143217452 Test: cd external/rust; mma; atest in all TEST_MAPPING subdirs Change-Id: I35e772bbff2254b53efa423288a02a43535e427a
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.