commit | 227a6f94f50b8c88744166d54adef1c2b6a07bec | [log] [tgz] |
---|---|---|
author | Daniel Norman <danielnorman@google.com> | Mon Nov 30 11:41:50 2020 -0800 |
committer | Daniel Norman <danielnorman@google.com> | Mon Nov 30 11:41:50 2020 -0800 |
tree | 28622e968af0c590562acd72339a5215cafd2c6b | |
parent | 64d9b4d4f2c5e4065e161ec9224dae843f338e36 [diff] | |
parent | ddd132a1873f3b50be426e4be2269961a1b40dac [diff] |
Merge SP1A.201130.001 Change-Id: Ieff0bb31d5940b1b60a17802a3e3a2222fe9ce83
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.