{"id":57262,"library":"which","title":"which","description":"A Rust equivalent of Unix command 'which'. Locate installed executable in cross platforms.","status":"active","version":"8.0.3","language":"rust","source_language":null,"source_url":"https://github.com/harryfei/which-rs","tags":["which","executable","path","cross-platform"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nwhich = \"8.0.3\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add which","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"which","correct":"use which::which;"}],"quickstart":{"code":"use which::which;\n\nfn main() {\n    match which(\"rustc\") {\n        Ok(path) => println!(\"Found: {}\", path.display()),\n        Err(e) => println!(\"Error: {}\", e),\n    }\n}","lang":"rust","description":"Locate an executable in the system PATH."},"warnings":[],"env_vars":null,"search_vec":"'command':7 'cross':13,19 'cross-platform':18 'equival':4 'execut':11,16 'instal':10 'locat':9 'path':17 'platform':14,20 'rust':3 'unix':6","created_at":"2026-06-16T15:35:22.850598+00:00","updated_at":"2026-06-16T15:35:22.850598+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/harryfei/which-rs","github":"https://github.com/harryfei/which-rs","docs":"https://docs.rs/which/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}