commit | c0b035707fa17f957413b9f780470015dae61dd5 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Aug 25 03:05:48 2021 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Aug 25 03:05:48 2021 +0000 |
tree | 0cea581b7dd011a03558f596e137671c67be5e45 | |
parent | 878f71c0677aa3ff5ac9529fabcc6a96923a16d8 [diff] | |
parent | 2a065e93a540f1e47e96b7fec12fa149b9655048 [diff] |
Snap for 7671334 from 2a065e93a540f1e47e96b7fec12fa149b9655048 to tm-release Change-Id: I63734829ea3ae0bf44bc87874af05af37bc920cb
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.