typestar

Web services with axum

9 steps in 4 sets of Rust.

A small web service in Rust. Routes and handlers, then extractors and shared state, which is where axum's type-driven design either delights you or produces a compiler error the length of a page.

Responses and middleware close it out. Nine steps, deliberately narrow: enough to see the shape of an axum service without pretending a tour can teach you to run one in production.

Start this tour

Routes & handlers

Extractors & state

Responses & middleware

Encore

  • tour_api.rsA whole small service: shared state, nested routes, typed errors, JSON replies.

The other Rust tours