commit | dfa4f52101164a5f4da2a29c934ddd3c60890753 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Fri Nov 06 02:04:32 2020 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Fri Nov 06 02:04:32 2020 +0000 |
tree | 28622e968af0c590562acd72339a5215cafd2c6b | |
parent | 820832026f063a3fe50969791a665212bdc0829b [diff] | |
parent | 9d5bd2de77f7563384c66bb7a42cca20ba1095aa [diff] |
Snap for 6955520 from 9d5bd2de77f7563384c66bb7a42cca20ba1095aa to sc-release Change-Id: I2b6676489667f880bb487fc06cab19858da6347a
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.