commit | 559ea10b606b180a8075ba05db87e4d19465a75c | [log] [tgz] |
---|---|---|
author | Xin Li <[email protected]> | Sat Feb 20 13:16:44 2021 +0000 |
committer | Automerger Merge Worker <[email protected]> | Sat Feb 20 13:16:44 2021 +0000 |
tree | f25debd1f0219119220213160317f9cfc4168432 | |
parent | 6fa85c488afda7ae4a9eb9592b04fb2f2f3dd337 [diff] | |
parent | 4c33ad87118132f509afc490d9f9e554b16e8741 [diff] |
[automerger skipped] Mark ab/7061308 as merged in stage. am: eaca4d18d2 -s ours am: 5201738581 -s ours am: 4c33ad8711 -s ours am skip reason: Change-Id I553834878b684a2e102b272ff68b1b857e6f19bc with SHA-1 f7debc514a is in history Original change: undetermined MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I0d5b89f3ecdc04051569a49b74a43bf51d6ff366
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.