commit | 3b106f3e19d5bebc0c51cba66ccf7836950e2855 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Wed Oct 21 06:28:08 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Oct 21 06:28:08 2020 +0000 |
tree | c5da52674c7d3d7d1be4c2df6eea7430fae7a392 | |
parent | 109149bd8b4f7e91dd41c1a1d3946a6fc3f95984 [diff] | |
parent | e35855f70754bf545c9a9e7a1452fc71be295cb1 [diff] |
Use MIT license type, specified in Cargo.toml am: 2aa894e207 am: 76905295b2 am: 1ba8b2a966 am: e35855f707 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1466038 Change-Id: I5e0cf0a5502faec837d8019a3b6a448a5d7a7d22
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.