commit | 2aa894e207f6357487caa1cfbdae3a8323739aa3 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Mon Oct 19 22:26:53 2020 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Mon Oct 19 22:26:53 2020 -0700 |
tree | c5da52674c7d3d7d1be4c2df6eea7430fae7a392 | |
parent | cbd4aa00cf794856d3b9434c435dc6e69b187fcc [diff] |
Use MIT license type, specified in Cargo.toml Test: make Change-Id: I46adc118d26c88bbee3cf53f196f6e6400d13204
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.