commit | 9ce2b44c033788fabdc5a51d845d43b27c856f79 | [log] [tgz] |
---|---|---|
author | Xin Li <[email protected]> | Wed Jun 02 16:50:56 2021 +0000 |
committer | Xin Li <[email protected]> | Wed Jun 02 16:50:56 2021 +0000 |
tree | cc218f809b980499efdc11c0902cd6c3b2637ab4 | |
parent | c58a55da91a3394e31961d9481c57257889389a2 [diff] | |
parent | e19c8c561565fcf1fec05e94aefa07728f69409a [diff] |
Merge sc-mainline-prod Bug: 189946434 Change-Id: Iee426324397bf4100fd3ac7c959a8796dda6798a
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.