tag | 57528a3e8b2193473caaa1c977351ceb7b9a3fa2 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Sat Oct 21 16:22:08 2023 -0700 |
object | 8c09af8f0c1401f4e102c6c7665ea0e3656dbfab |
aml_ads_340915050 (10714381,com.google.android.go.adservices)
commit | 8c09af8f0c1401f4e102c6c7665ea0e3656dbfab | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 04:46:18 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 04:46:18 2023 +0000 |
tree | bb7fed649d07e5b24e581d19ccf3c547b2b86c62 | |
parent | dcf0080fd00e36169ede39568360d051719d6ad3 [diff] | |
parent | 878f532dd57bdcbce44364b7eecb1811140e99b7 [diff] |
Snap for 10453563 from 878f532dd57bdcbce44364b7eecb1811140e99b7 to mainline-adservices-release Change-Id: I7f4f878f395343707c648cfc11fb5098ae427c3e
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.