commit | 27963a8f0916f550ff37a4306946f4a13b84f2bd | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Jul 07 03:05:59 2021 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Jul 07 03:05:59 2021 +0000 |
tree | 84c72c51a7e0fabdbf640685667a721048bdc2ad | |
parent | cb8e2b0a0e88104c9df87f75ee1270b7bbe2cd4a [diff] | |
parent | a5966aef26c201a8e126b909897037f6a0819486 [diff] |
Snap for 7526140 from a5966aef26c201a8e126b909897037f6a0819486 to tm-release Change-Id: Ib9480b23d1d76af0165b5c0b149c39251aabe199
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.