Crate

clap

Command-line argument parser for Rust applications.

What it is

clap is the standard argument parser for Rust CLI tools. It is usable via a builder API or with derive macros on a struct, where fields and attributes declare flags, options, and subcommands. Help text, input validation, and shell completion are generated automatically.

Why it is commonly used

Used by nearly every Rust command-line tool. The derive API turns a typed Rust struct into a complete CLI interface — argument parsing, validation, and help text without boilerplate.

3.1k
Repositories
88%
Actively maintained
2.6k
Updated ≤ 30 days
7.4M
Total stars
2.5k
Owners

Counted from the Cargo.toml manifests of the 3.1k indexed repositories that declare clap as a dependency — not download counts. Dependency data last verified 2026-08-13.

Browse 3072 repositories using clap in Repos →
Often used with

Crates that show up unusually often in clap projects. The most distinctive pairings rank first — crates these projects use far more than the average indexed Rust project does, not just crates that are popular everywhere. Each percentage is the share of clap projects that also use it.

Used by these organizations
50 of 3.1k repositories · ranked by stars · 2.6k pushed in the last 30 days
claw-code195kmaintenance

An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.

RuView89kactive

π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.

rtk75kactive

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

⑂ 4.7k1.9k
union74kactive

The trust-minimized, zero-knowledge bridging protocol, designed for censorship resistance, extremely high security, and usage in decentralized finance.

hyperswitch43kactive

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

qdrant34kactive

Qdrant - High-performance, massive-scale Vector Database and Vector Search Engine for the next generation of AI. Also available in the cloud https://cloud.qdrant.io/

delta32kactive

A syntax-highlighting pager for git, diff, grep, rg --json, and blame output

⑂ 555420
← Browse all repos