tag | fd355968eb7ad4841a0a14f196f938c192a0159b | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Dec 06 16:36:51 2023 -0800 |
object | e2ae5d89525ec2209315689f1dbe36a2c24dae9e |
aml_neu_341010000 (10716761,com.google.android.neuralnetworks)
commit | e2ae5d89525ec2209315689f1dbe36a2c24dae9e | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 05:07:18 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 05:07:18 2023 +0000 |
tree | bb7fed649d07e5b24e581d19ccf3c547b2b86c62 | |
parent | 7bc2465fae53884869d533c92dfe17aa19237e1a [diff] | |
parent | 878f532dd57bdcbce44364b7eecb1811140e99b7 [diff] |
Snap for 10453563 from 878f532dd57bdcbce44364b7eecb1811140e99b7 to mainline-neuralnetworks-release Change-Id: I10e6a607fc76b10a664af0b5403802616e71a0b9
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.