Registry / utility / which
library8.0.3rscratesunverified

A Rust equivalent of Unix command 'which'. Locate installed executable in cross platforms.

# Cargo.toml [dependencies] which = "8.0.3"
INSTALL
IMPORT
SIG · WHICH
W
which
utilityrustv8.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

which
use which::which;

Locate an executable in the system PATH.

use which::which; fn main() { match which("rustc") { Ok(path) => println!("Found: {}", path.display()), Err(e) => println!("Error: {}", e), } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
8.0.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
which — cargo add which · libregistry