Science & Technology

Laravel Rust is here

by nunomaduro

Share:

Export

⬇ Markdown PDF 🔒

📚 Main topics

  • Introducing Laravel RustThe video presents Laravel Rust as a Rust-based framework with familiar Laravel features, including routing, validation, models, migrations, storage, and Inertia. 0:00
  • Installing and creating a projectThe presenter installs Rust and the Laravel CLI, creates a Rust project, configures PostgreSQL, runs migrations, and starts the development server. 1:01
  • Exploring the project structureThe tour covers migrations, models, handlers, routes, middleware, tests, dependencies, and other files in the generated application. 3:35
  • Building a news site with AI assistanceClaude Code helps create a news website with Markdown-based posts, repository logic, and a selected layout; the presenter reviews the resulting code and pages. 7:43

✨ Key takeaways

  • Laravel-style development in RustLaravel Rust aims to provide recognizable Laravel APIs and project conventions while using Rust, with the presenter noting Rust’s type and memory safety. 0:30
  • A familiar toolchainCargo manages Rust projects and dependencies, while Rustup installs and updates Rust; the presenter compares these tools to familiar PHP equivalents. 1:01
  • AI can help with the transitionThe presenter says developers can learn the principles of Rust and use AI tools to help with syntax and application development. 4:07
  • Markdown-powered contentThe example site stores news as Markdown and uses a repository to read and display the posts. 9:16

🧠 Lessons learned

  • Review generated codeThe presenter spots that the news listing fetches all posts rather than paginating them, and recommends pagination as a better practice. 9:47
  • Learn the ecosystem over timeRust dependencies such as Serde, Tokio, and tracing may be unfamiliar at first, but the presenter suggests developers can become comfortable with them as they work. 7:43
  • Check the documentationThe presenter recommends reading the Laravel Rust documentation, describing it as well written and useful for learning the framework. 0:30

🏁 Conclusion and next steps

  • Possible deployment and improvementsThe presenter plans to polish the news site, improve its SEO, explore ways to find relevant news, and potentially deploy it on Laravel Cloud. 10:48
  • More tutorials may followThe presenter invites viewers to share whether they want deeper tutorials or a livestream building projects with Laravel Rust. 11:51

Transcript excerpt

0:00 Beautiful people, we finally have Laravel written in Rust by Taylor Otwell. You guys know how much I love Rust. I've been talking about Rust since forever. We finally have literally Laravel written in Rust. It just looks like Laravel. I was just looking at the code snippets. Just look at this beauty. Almost feels like PHP, but you're just using Rust behind the scenes. Just so happy and excited about this chat. Today, I want to literally show you how can you get started with Laravel Rust. Let's go. Now, super important to acknowledge that this does feel like Laravel. Even though we're talking about Rust code, it does come with everything

0:30 you love on Laravel. Routing, validation, inertia, casting, models, migrations, file storage, like all of the little APIs that you cannot live without, they come on Laravel Rust. Now, very important, I would really advise you to just go through the documentation of Laravel Rust. Of course, you can use Claude Code and basically will just kind of do everything for you, but I would really advise you to just read this cuz it's actually very well written and can teach you a few things. Now the first thing we are going to do is lally just install Rust on this machine. So let's actually just copy paste this very first command Taylor tells us to run which is literally to install Rust up in our

🔒 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.

Key Topics

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.