tag | 7f63db4a68b2763c726a47cea0d19999030f471e | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Nov 01 13:41:26 2023 -0700 |
object | e56ebc6934f97658ae0feb1c95ba1a4b1aaafbd9 |
aml_art_341010050 (10774870,com.google.android.art,com.google.android.go.art)
commit | e56ebc6934f97658ae0feb1c95ba1a4b1aaafbd9 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 04:45:32 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 04:45:32 2023 +0000 |
tree | bb7fed649d07e5b24e581d19ccf3c547b2b86c62 | |
parent | 185c72ddcd37905eb5eb03f12b9ff3dee769e7aa [diff] | |
parent | 878f532dd57bdcbce44364b7eecb1811140e99b7 [diff] |
Snap for 10453563 from 878f532dd57bdcbce44364b7eecb1811140e99b7 to mainline-art-release Change-Id: I22137929a27ef5c8d6b5222ea046e0c40411bbd0
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.