commit | 73fb21b4c08b94a2fe0656b9f9e1feb62d6bd0a4 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Wed Nov 04 21:53:57 2020 +0100 |
committer | Jeff Vander Stoep <jeffv@google.com> | Wed Nov 04 22:01:10 2020 +0100 |
tree | 28622e968af0c590562acd72339a5215cafd2c6b | |
parent | 2aa894e207f6357487caa1cfbdae3a8323739aa3 [diff] |
TEST_MAPPING: test dependers of this crate Bug: 168167373 Test: TH Change-Id: I5ee6f50aa5facccb0c93eb8a4c40c0221b22f802
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.