commit | 1068c3b2ef071a9c3166512617d8e3bad12265f4 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Tue Jul 14 01:20:28 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jul 14 01:20:28 2020 +0000 |
tree | 844649699e4092fd4c7d82797ee826d45e579c01 | |
parent | a67390c7f5cda4fb5e866eda4c12819d30d5e7b1 [diff] | |
parent | b60ac1dde705efe27f1f0feab5d2177fe82d1268 [diff] |
Regenerate Android.bp with new cargo2android.py am: b60ac1dde7 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1362300 Change-Id: I1ad7397490ca2b41716ebd282c048bd90727e218
A Rust equivalent of Unix command “which”. Locate installed executable in cross platforms.
To find which rustc exectable binary is using.
use which::which; let result = which::which("rustc").unwrap(); assert_eq!(result, PathBuf::from("/usr/bin/rustc"));
By default this crate exposes a failure
based error. This is optional, disable the default features to get an error type implementing the standard library Error
trait.
The documentation is available online.