commit | d7bcf437866b7142b68207bb7ac480dfe63ab990 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <[email protected]> | Fri Apr 02 10:50:05 2021 -0700 |
committer | Elliott Hughes <[email protected]> | Fri Apr 02 10:50:05 2021 -0700 |
tree | cc218f809b980499efdc11c0902cd6c3b2637ab4 | |
parent | eaca4d18d27d7fa54182f1cd91849bddca42db92 [diff] |
Upgrade rust/crates/which to 4.1.0 Test: make Change-Id: I7f3f322721f4e003735ea1147bec93355b0a4b32
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.