commit | aacf0ff2a91ce1ab4db7c5cb0c7b6f321bc9b58c | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Fri Apr 17 01:15:27 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Apr 17 01:15:27 2020 +0000 |
tree | f34f8485c16cb5912c4945ac231f1c937d349517 | |
parent | 3bdad64f25d96ddc113cd016930637d8820fcd2b [diff] | |
parent | f2f95748422b349a3f3ef4ea3b0b55faa4d4ea44 [diff] |
Import 'which' package version 3.1.1 am: fab8377002 am: f2f9574842 Change-Id: I1d6eebd7ae161f013f92ff8fccc989c4c88bbbf5
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"));
By default this crate exposes a failure
based error. This is optional, disable the default features to get an error type implementing the standard library Error
trait.
The documentation is available online.