commit | 6abc81d54074f9dac08db0a0bec8181f3301f5ee | [log] [tgz] |
---|---|---|
author | Haibo Huang <hhb@google.com> | Wed Jul 15 19:00:35 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Jul 15 19:00:35 2020 +0000 |
tree | 6a70b20b99ff51d93896380d942ea1628c1ad441 | |
parent | 53ec0621d03b1564a7a06f3baa955e9e0175f3e9 [diff] | |
parent | 74fd0b41ebeeb69c066cab7ea5e2837b5d8754fd [diff] |
Upgrade rust/crates/which to 4.0.1 am: 8b6eb89f36 am: ed9bfb672b am: e71d767a0f am: 74fd0b41eb Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1360861 Change-Id: I26e2d3aff2f3172dd4aa85f22ae988fcc033cd78
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.