commit | 8b6eb89f36d32d6c35dea1710c284856b67b9293 | [log] [tgz] |
---|---|---|
author | Haibo Huang <[email protected]> | Fri Jul 10 20:24:59 2020 -0700 |
committer | Chih-Hung Hsieh <[email protected]> | Tue Jul 14 18:25:28 2020 -0700 |
tree | 6a70b20b99ff51d93896380d942ea1628c1ad441 | |
parent | b60ac1dde705efe27f1f0feab5d2177fe82d1268 [diff] |
Upgrade rust/crates/which to 4.0.1 Test: make Change-Id: Ib1b3363614d4c215d826a75dfebb2fa8517f1067
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.