commit | 76905295b21f15aaab2bc04555ea01b683c8c1b5 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Wed Oct 21 05:18:13 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Oct 21 05:18:13 2020 +0000 |
tree | c5da52674c7d3d7d1be4c2df6eea7430fae7a392 | |
parent | cbd4aa00cf794856d3b9434c435dc6e69b187fcc [diff] | |
parent | 2aa894e207f6357487caa1cfbdae3a8323739aa3 [diff] |
Use MIT license type, specified in Cargo.toml am: 2aa894e207 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1466038 Change-Id: Ifd87ce811703fb3d9e859af8a1a4e0feebdc297d
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.