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.