commit | eaca4d18d27d7fa54182f1cd91849bddca42db92 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Sat Feb 20 00:24:25 2021 -0800 |
committer | Xin Li <delphij@google.com> | Sat Feb 20 00:24:25 2021 -0800 |
tree | f25debd1f0219119220213160317f9cfc4168432 | |
parent | 50e1965a020e44a3cdf16c9fc08c0a6f2a35ccdd [diff] | |
parent | f7debc514aa30b88c930a13799ab02f4c4e1a70f [diff] |
Mark ab/7061308 as merged in stage. Bug: 180401296 Merged-In: I553834878b684a2e102b272ff68b1b857e6f19bc Change-Id: I7f431bfa3aff66ca35e83b0be158fe22ac0beab3
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.