commit | e92abd30fa7f0b5a710c5b5ee30052f63efffb33 | [log] [tgz] |
---|---|---|
author | Haibo Huang <[email protected]> | Tue Aug 04 15:10:40 2020 -0700 |
committer | Haibo Huang <[email protected]> | Tue Aug 04 15:10:40 2020 -0700 |
tree | f9e759189ab9277788562b2f088a6a4248120174 | |
parent | 8b6eb89f36d32d6c35dea1710c284856b67b9293 [diff] |
Upgrade rust/crates/which to 4.0.2 Change-Id: Ia00f7a794e0eb6b3239f171d216675ee6cb02003
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.