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