typestar

CLI tools & HTTP clients

12 steps in 4 sets of Rust.

Rust makes very good command-line tools, and this is why people who do not write systems software end up learning it anyway. Argument parsing with clap, then reading and writing streams properly.

The last set is reqwest for HTTP. Twelve steps, and the Encore is a tool you could plausibly install and use.

Start this tour

Arguments

Input & output

Requests with reqwest

Encore

  • fetch_tours.rsA real CLI: clap parses the flags, reqwest fetches, serde models the reply.

The other Rust tours