commit | e41d6a8c5440be4f0ad2ac1fbbc7f75bcf1467d8 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <[email protected]> | Wed Apr 14 01:05:37 2021 +0000 |
committer | android-build-team Robot <[email protected]> | Wed Apr 14 01:05:37 2021 +0000 |
tree | cc218f809b980499efdc11c0902cd6c3b2637ab4 | |
parent | e8f51e6290cd2360e303c28e6062b1666f163c5b [diff] | |
parent | 3f00182ae337968fd9064d8f3cc770221386a82c [diff] |
Snap for 7280565 from 3f00182ae337968fd9064d8f3cc770221386a82c to sc-d1-release Change-Id: I09192ec81f384078d4a2c5b4760eb696994f3ebb
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.