commit | 73099f090df2feadb5a69919195a059143f7a15c | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Thu Dec 16 02:06:45 2021 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Thu Dec 16 02:06:45 2021 +0000 |
tree | 2ea0e76815a667dd8445edec8840f25fd980fc12 | |
parent | a14b135c9d55259cacec5b1bd8e1b38d58bf4116 [diff] | |
parent | 4fa35c7f3e0b6c375dc2b10148435ff9a247ff0c [diff] |
Snap for 8006021 from 4fa35c7f3e0b6c375dc2b10148435ff9a247ff0c to tm-d1-release Change-Id: I29eac08ebbb4c7f68707ae1b176f01065d83096b
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.