Skip to content
rusthacks.dev
Topic

CLI

Small, fast command-line programs: parsing arguments, reading config, failing politely and shipping a single binary.

Flat illustration for the post “Build a Todo CLI in Rust With Serde and a JSON File”, composed around serde.
CLIGuide

Build a Todo CLI in Rust With Serde and a JSON File

Build a todo list CLI in Rust with clap subcommands, serde JSON storage, stable ids, atomic and durable saves, and a file lock that stops concurrent runs from losing items. Every claim measured.

17 min read
Flat illustration for the post “Build a Grep Clone in Rust and Learn File Handling”, composed around cli.
CLIGuide

Build a Grep Clone in Rust and Learn File Handling

Build a grep clone in Rust from a naive version that panics on Latin-1 text to a streaming one that searches 72 MB in 77 ms with 2.5 MB of memory, handling binary files, exit codes and broken pipes.

20 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.