tag | 5719ccd10c81319b82aebb467940ef569ae235ff | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Apr 27 19:11:25 2020 -0700 |
object | fab837700283a7303273b086df93fabf0e67b311 |
Platform Tools Release 30.0.0 (6405830)
commit | fab837700283a7303273b086df93fabf0e67b311 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Tue Apr 07 14:24:03 2020 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Tue Apr 07 14:28:37 2020 -0700 |
tree | f34f8485c16cb5912c4945ac231f1c937d349517 | |
parent | 3bdad64f25d96ddc113cd016930637d8820fcd2b [diff] |
Import 'which' package version 3.1.1 * Add OWNERS Bug: 152884384 Test: make Change-Id: Ic643b3c23001db1124e626548e13e43b27b89c7b
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.