Entertainment

The Laravel You Know, Written in Rust

by Laravel

Share:

Export

⬇ Markdown PDF 🔒

📚 Main topics

  • A New Framework for RustLaravel for Rust brings Laravel’s focus on expressive, approachable development to Rust, while taking advantage of the language’s speed, safety, and compiler checks. The speaker says it was designed from first principles, not translated or automatically ported from Laravel PHP. 0:31
  • Familiar Application StructureThe framework includes routes, middleware, handlers, forms, models, relationships, events, and queued jobs. Its APIs are designed to feel familiar to Laravel PHP developers while fitting Rust’s conventions. 1:35
  • Typed Forms and ModelsForm structs define valid request input and support validation, while typed model properties make application data explicit. This helps prevent invalid states and mass-assignment problems. 2:35
  • Building and Testing a Campaign WorkflowA demo newsletter application creates campaigns, dispatches events and jobs, and updates its dashboard. Tests can fake queues and users, make requests, and assert job and database results. 5:11
  • Async Features and Framework ServicesLaravel for Rust supports asynchronous database and mail operations, background tasks, concurrency, an HTTP client, caching, notifications, signed URLs, and file storage. It also includes Inertia support and email templates. 11:24

✨ Key takeaways

  • Speed and SafetyRust’s performance and compiler checks can help applications serve more requests efficiently and catch mistakes before they ship. The speaker says Laravel for Rust can be more than ten times faster than Laravel PHP in many cases. 0:31
  • Familiarity with Rust-Specific BenefitsThe framework keeps recognizable Laravel concepts and syntax while leaving behind features that do not fit Rust and taking advantage of its type system and async capabilities. 7:45
  • Support for AI AgentsThe project includes skills intended to help agents build Laravel for Rust applications with appropriate structure and output. 10:53

🧠 Lessons learned

  • Make Invalid States Harder to RepresentTyped forms and models, along with validated input, bring correctness into the framework instead of relying on developers to manage safeguards manually. 3:07
  • Co-locate Related CodeModels and factories can live together, making their relationship easier to see and helping keep them in sync. 6:43
  • Use Async Work Where It FitsThe framework can run background tasks and concurrent operations without blocking a request while waiting for slower work. 11:24

📚 Conclusion/next steps

  • Try the BetaThe first beta is available to try. The speaker invites developers to clone the project, start an application, use an agent to build with it, and deploy to Laravel Cloud. 15:34

Transcript excerpt

0:00 For 15 years, Laravel has been about one thing, making the experience of building an application feel great for the human sitting at the keyboard. Expressive code, beautiful names, things that just read the way you say them out loud. And that's not changing. Laravel PHP isn't going anywhere, and we're going to keep pouring ourselves into it. But over the last year, and especially over the last few months, I kept asking myself a question. More and more code is being written by agents. In fact, almost all of our code is being written by agents with us driving. So what would a framework look like if

0:31 we started from first principles today? What if we took everything we've learned from 15 years of building Laravel, the beauty, the expressiveness, the care, and brought it to a language that's built for speed and safety? A language that's always been incredible, but historically hard to write. Rust is fast, Rust is safe, and when an agent is writing a lot of your code, the compiler catches mistakes before they ever ship, and that's a huge deal. The hard part of Rust was always the human experience, and that's the one thing we know how to do. So I built it.

🔒 The full, searchable transcript is available with Pro.

🔒 Unlock Premium Features

This is a premium feature. Upgrade to unlock unlimited Q&A, transcripts, mindmaps, and translations.

🔒 Unlock Premium Features

Access to Chat is a premium feature. Upgrade now to unlock unlimited studying tools.

🔒 Unlock Premium Features

Access to Mindmap is a premium feature. Upgrade now to unlock unlimited studying tools.

🔒 Unlock Premium Features

Access to Flashcards is a premium feature. Upgrade now to unlock unlimited studying tools.

Get unlimited summaries, Q&A, transcripts and more with Pro

Upgrade to Pro

Suggestions

🔒 Unlock Premium Features

Access to AI Suggestions is a premium feature. Upgrade now to unlock unlimited studying tools.