commit | 96cb8451abf6ae76acebeff1ebee6166f4927150 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Dec 16 02:07:48 2021 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Dec 16 02:07:48 2021 +0000 |
tree | 2ea0e76815a667dd8445edec8840f25fd980fc12 | |
parent | fea62a96899f4f16eed0f287a09ce784cf7e7ea5 [diff] | |
parent | 4fa35c7f3e0b6c375dc2b10148435ff9a247ff0c [diff] |
Snap for 8006021 from 4fa35c7f3e0b6c375dc2b10148435ff9a247ff0c to tm-release Change-Id: I5e4a7f7c83c10cfe36fb3425da242f7aea06b302
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.