commit | cbd4aa00cf794856d3b9434c435dc6e69b187fcc | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Thu Oct 08 17:21:40 2020 -0700 |
committer | Xin Li <delphij@google.com> | Thu Oct 08 17:21:40 2020 -0700 |
tree | 8950b023a47cbecb9f23a752bfcb21df1915e309 | |
parent | dd49be57fad4e5af7310a9f8506c1e804e258a4b [diff] | |
parent | 74fd0b41ebeeb69c066cab7ea5e2837b5d8754fd [diff] |
Skip ab/6749736 in stage. Merged-In: I421d8f9d0ae05635241da2db7936761a9cd4ce61 Change-Id: I6603e80f2c14842c9e473f8ede1bad1e07e6ac74
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.