Code Generating a Safer Web with Rocket
summary
Rocket is a Rust web framework that uses procedural macros to generate compile‑time parsing, validation, and deserialization so there is no runtime introspection and no runtime errors for request handling. It enforces policies with request guards that only dispatch handlers when all guards pass, preventing mass‑assignment and auth bugs. The code generator produces the boilerplate, the server reaches sub‑microsecond latency and tens of thousands more requests/sec than Flask or Express in benchmarks, and thousands of users with dozens of companies run it in production.
AI-written summary · about
chapters (12)
- 0:00Intro
- 0:35What is Rocket
- 2:46About Rocket
- 5:20Do we really need another web framework
- 15:40Rails vulnerability
- 22:35Struts attack
- 24:47Hello world
- 28:32Dynamic paths
- 32:01Request guards
- 35:06Data guards
- 37:30Code generation
- 40:05Performance
related talks
33mBuilding Rocket
31mBlasting Off with Rocket: A Deep Dive into Rust's Web Framework
27mThe State of Rust Web Frameworks: Pros, Cons & Use Cases
36mFast, secure, safe: the web that can still be
31mRustly typed APIs; ... JSON RPC with Rust, Procedural macros and a DSL
25mWTF, Rust for Web Development??
01h 00mSecuring React: Prompt Engineering for Robust and Secure Code Generation
01h 00mThe Future of Rust Web Applications
