commit | 02e7db2f2596ece9cc330468b67a8ad7317d8f86 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Mon Nov 23 11:30:38 2020 -0800 |
committer | Xin Li <delphij@google.com> | Mon Nov 23 11:30:38 2020 -0800 |
tree | 28622e968af0c590562acd72339a5215cafd2c6b | |
parent | 93b9b764e081513ba334500b3d9fec51dd0dc5cb [diff] | |
parent | fa128584ad89752d76e43d1d789f82e4eb5e736f [diff] |
Mark ab/6881855 as merged Bug: 172690556 Change-Id: I3e12e4397de9ca2f49a8cbaba77b459101284815
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.