commit | 1ebbc8dee5a25fbc596c9baa576c19de98d87135 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Fri Apr 17 01:56:43 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Apr 17 01:56:43 2020 +0000 |
tree | f34f8485c16cb5912c4945ac231f1c937d349517 | |
parent | 3bdad64f25d96ddc113cd016930637d8820fcd2b [diff] | |
parent | 3963cb271beb9c4c03c4481530b8d137d1f56486 [diff] |
Import 'which' package version 3.1.1 am: fab8377002 am: f2f9574842 am: aacf0ff2a9 am: 3963cb271b Change-Id: I8a55ea6a490f9571e08274d10020a39828722dfa
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.