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