{"data":{"slug":"clap","name":"clap","tagline":"Command line argument parser for Rust","category":"rust","categoryName":"Rust","url":"https://docs.rs/clap","github":"https://github.com/clap-rs/clap","pricing":"open-source","hook":"clap turns structs into command-line interfaces.","whatsGood":"Derive macros generate parsers from struct definitions. Help text generates automatically. Shell completions work. Subcommands are straightforward.","theCatch":"Compile times increase with complex CLIs. Some advanced patterns require builder API. Error messages could be clearer.","verdict":"The CLI argument parser most Rust projects use.","addedAt":"2026-08-19","featured":false,"domain":"Rust","subSpecialty":"Systems","capabilities":["cli"],"surfaces":["CLI","Self-host"],"ecosystem":["Rust"],"licenseModel":"OSS/MIT","githubStars":16683},"related":[{"slug":"rust-lang","name":"Rust","tagline":"Systems programming without the footguns"},{"slug":"tokio","name":"Tokio","tagline":"Async runtime for Rust"},{"slug":"axum","name":"Axum","tagline":"Web framework from the Tokio team"},{"slug":"actix-web","name":"Actix Web","tagline":"Fast Rust web framework"},{"slug":"serde","name":"Serde","tagline":"Serialization framework for Rust"}],"links":{"self":"/api/gems/clap","html":"/gems/clap","markdown":"/gems/clap.md","category":"/api/gems?category=rust","categoryPage":"/stacks/rust"}}