commit | 9e4f7ef0370b6701ac0afbf3c12a2ecaaa6cb439 | [log] [tgz] |
---|---|---|
author | Joel Galenson <[email protected]> | Mon Aug 09 10:51:09 2021 -0700 |
committer | Joel Galenson <[email protected]> | Mon Aug 09 10:51:09 2021 -0700 |
tree | ee0741f958fe697978838edb95ab00e50af08beb | |
parent | 47e0a9298874d3d47dd4d2ce980adce7df3ad730 [diff] |
Upgrade rust/crates/which to 4.2.2 Test: make Change-Id: I729740e4bb2fb5c55d70cfbe046eff371b4e8252
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.