Skip to content
0:00 / 0:00

#axum#tower#rustasync

Decrusting the axum crate

Jon Gjengset

111K subscribers • 38 videos on Hallway

YouTube
  • Recommended by 5 people: 5 in engineering communities.
  • Presented by Jon Gjengset
  • Linked in the descriptiontokio-rs/axum
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Advanced. Deep dive for people who know the field.

103K views3 years ago5 recommendations

Web developmentProgramming languagesRustHTTP, REST and GraphQLFull-stack frameworks

Jon Gjengset explores the internals of the axum web framework, explaining tower services, handlers, and state extractors.

In this stream, we peel back the crust on the axum crate — github.com/tokio-rs/axum/ — and explore its interface, structure, and mechanisms. We talk about tower::Service, the Handler trait, Routers, and the State extractor. We also get into the way axum ensures at compile time that all handlers have access to the state that they'll need at runtime. For more details about axum, see docs.rs/axum/latest/axum/. Introduction axum tower::Service The Handler trait and its impls The State extractor axum's use of other crates Unstable features axum wants State requiring that T: CLone FromRef Handling custom HTTP methods axum_extra Live version with chat (part 1): youtube.com/live/ntqGaoEFYiQ?feature=share Live version with chat (part 2): youtube.com/live/36m4dxJ0AHg?feature=share

Why it's here

5 people recommend this

What people say. Highly recommended for understanding how Axum works at a deep level, especially its complex generic handler system.

Moments people linked to

u/Crazy_Fireflyin r/rust • Recommends

On “Super heavy generic on HTTP lib makes debugging hard”

I agree that these special extractor traits can feel a bit like "magic" and be a bit confusing. But it's pretty common for web frameworks to try to have this kind of API. I still think what Axum does is more understandable than what java does.with spring boot. Jon Gjengset has a nice video explaining Axum which cleared things up for me. link to this video

u/fryuniin r/rust • Recommends

On “Is anyone actually productive in the Axum/Tower ecosystem?”

Or this video by u/jonhoo: De rusting the Axum crate

u/ToTheBatmobileGuyin r/rust • Recommends

On “How does an Axum handler work at the language level?”

This video is long, but it does a great job at explaining it: link to this video I made the link point to the time code where he starts talking about your question for about 45 minutes.
11View on Reddit

u/coolstorm1820in r/rust • Recommends

On “How to go from Zero to Rust backend developer?”

For understanding the basics I found Jon Gjengset very interesting and informative, for some fun projects you can try code-crafters.

u/cornell_cubesin r/rust • Recommends

On “Preparing for Rust (Axum) Backend Interviews — Need Guidance”

If you wanna come to learn how the Axum crate works at a deep level, I highly recommend watching this video by Jon Gjengset. Two hours long, but great stuff from a very credentialed rust educator in the scene.