commit | 0609fb3808cdcc2247b1136e19f0de95b45f0db5 | [log] [tgz] |
---|---|---|
author | Eric Arseneau <earseneau@google.com> | Mon Dec 06 14:36:41 2021 -0800 |
committer | Eric Arseneau <earseneau@google.com> | Mon Dec 06 14:36:41 2021 -0800 |
tree | cc218f809b980499efdc11c0902cd6c3b2637ab4 | |
parent | c76704361ea497ded853c1606f008c1091aad8ec [diff] | |
parent | e41d6a8c5440be4f0ad2ac1fbbc7f75bcf1467d8 [diff] |
Merge mpr-2021-11-05 Change-Id: I683f3429ec3fc7a6f7491fabec06078293d61a79
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.