tag | d228ea11f72ad833fb1b5b6252c49876e812f1e1 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Feb 14 13:57:02 2024 -0800 |
object | 4238da8b7a5792c330e0b82abe01e87bfcdf72d3 |
aml_med_341312020 (11341308,com.google.android.go.media,com.google.android.media)
commit | 4238da8b7a5792c330e0b82abe01e87bfcdf72d3 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 04:57:12 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 04:57:12 2023 +0000 |
tree | bb7fed649d07e5b24e581d19ccf3c547b2b86c62 | |
parent | 8cddb32b27784a874f29e78186a0994282254e74 [diff] | |
parent | 878f532dd57bdcbce44364b7eecb1811140e99b7 [diff] |
Snap for 10453563 from 878f532dd57bdcbce44364b7eecb1811140e99b7 to mainline-media-release Change-Id: I175b6231b38270419a1677a7acdb019e887a60d6
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.