tag | e2056fab4eabda74817b1b19126ae120f97b17cb | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Mar 27 11:30:05 2024 -0700 |
object | 123caa2d8a40352a1941738947354355ebe26309 |
aml_hef_341512030 (11392463,com.google.android.healthfitness)
commit | 123caa2d8a40352a1941738947354355ebe26309 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Jul 08 04:35:08 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Jul 08 04:35:08 2023 +0000 |
tree | bb7fed649d07e5b24e581d19ccf3c547b2b86c62 | |
parent | db31dbaeb5f2e4fa0836ad20e093480db828364b [diff] | |
parent | 878f532dd57bdcbce44364b7eecb1811140e99b7 [diff] |
Snap for 10460766 from 878f532dd57bdcbce44364b7eecb1811140e99b7 to mainline-healthfitness-release Change-Id: Iffddebabc012749fcae540a3f4fe1ee36934a5e3
A Rust equivalent of Unix command "which". Locate installed executable in cross platforms.
To find which rustc executable binary is using.
use which::which; let result = which("rustc").unwrap(); assert_eq!(result, PathBuf::from("/usr/bin/rustc"));
After enabling the regex
feature, find all cargo subcommand executables on the path:
use which::which_re; which_re(Regex::new("^cargo-.*").unwrap()).unwrap() .for_each(|pth| println!("{}", pth.to_string_lossy()));
The documentation is available online.