Blasting Off with Rocket: A Deep Dive into Rust's Web Framework
summary
Concrete claims and working examples dominate: Rocket 0.5/0.51 is described as stable, fast, and type-safe; route handlers, request guards, JSON and form guards, and Tera templates are shown with copyable code; database pools with SQLx or Diesel are wired and queried; a port-conflict bug appears in a demo and is resolved; a Django-style site is reportedly rewritten in days; Axum is mentioned as an alternative worth trying.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 2:56Why Rocket over others
- 3:39What is Rocket
- 5:48Setup Rocket hello world
- 7:41Configuring Rocket
- 8:26Rocket’s request lifecycle
- 11:43Dynamic paths and type safety
- 13:58HTTP methods and forms
- 15:44Templates with Tera/Handlebars
- 18:12Request guards and API keys
- 19:40Cookies and private cookies
- 21:10Forms and query params
- 23:01JSON serialization
- 24:27Error handling and state
- 25:52Database with Rocket DB pools
- 28:23Q&A
related talks
33mBuilding Rocket
42mCode Generating a Safer Web with Rocket
27mThe State of Rust Web Frameworks: Pros, Cons & Use Cases
25mWTF, Rust for Web Development??
38mRust on the frontend
23mRebuilding in Rust for Good Reason
01h 00mThe Future of Rust Web Applications
36mWeb development with Rust, is it ready? Is it even useful?
