commit | fe212fa5479742427c258ae9998acd71448c4bd5 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Thu Aug 27 09:44:16 2020 -0700 |
committer | Xin Li <delphij@google.com> | Thu Aug 27 09:44:16 2020 -0700 |
tree | f9e759189ab9277788562b2f088a6a4248120174 | |
parent | 9b29c40588eef2bcbea1def9c855b818c36c67dd [diff] | |
parent | e71d767a0f429197923989b55a5e97192d94306c [diff] |
Mark Android R (rvc-dev-plus-aosp-without-vendor@6692709) as merged Bug: 166295507 Merged-In: If5c5964d87c300a6625638bbeb9308bb0dcb120e Change-Id: I7f061c7da14d27aaaa46bf46b00c6902bfe2e64d
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.