commit | a16292fe0c7ea05507471b89efb40d6468d2af16 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Sat Feb 20 13:10:52 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Feb 20 13:10:52 2021 +0000 |
tree | f25debd1f0219119220213160317f9cfc4168432 | |
parent | 27300783a11166e82d4b03b0f2a95865869beda9 [diff] | |
parent | 4c33ad87118132f509afc490d9f9e554b16e8741 [diff] |
[automerger skipped] Mark ab/7061308 as merged in stage. am: eaca4d18d2 -s ours am: 5201738581 -s ours am: 4c33ad8711 -s ours am skip reason: Change-Id I553834878b684a2e102b272ff68b1b857e6f19bc with SHA-1 f7debc514a is in history Original change: undetermined MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Iad4ecf5782133ac5fc35f27a96a22047c8ad6864
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"));
The documentation is available online.