commit | fac4c3b1ffcfe04a305c3f77b80a772ad5c68246 | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Sun Jan 16 14:32:35 2022 -0800 |
committer | Linux Build Service Account <lnxbuild@localhost> | Sun Jan 16 14:32:35 2022 -0800 |
tree | cc218f809b980499efdc11c0902cd6c3b2637ab4 | |
parent | 7f0a4caf13e877c6d958b8682c89e00d2f2e628a [diff] | |
parent | 54c978d381fcd4212dd0168921ecfb7e46794ccf [diff] |
Merge 54c978d381fcd4212dd0168921ecfb7e46794ccf on remote branch Change-Id: Ie97559c028e47b4c579a885f2f60c1dc618426ff
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.