hn.today

Laravel Rust

laravel.com18 points3 comments
Screenshot of Laravel Rust

Laravel Rust is a beta full-stack web framework that brings Laravel’s conventions and broad feature set to idiomatic Rust. Built on Axum and Tokio, it makes request handling, database access, queues, and other services asynchronous, while moving blocking work off the main runtime. Internal Laravel Cloud benchmarks report it runs 18 times faster than Laravel PHP and uses less CPU and memory. The framework is presented as designed for both high-performance applications and AI-assisted development: new projects include agent skills, while Rust’s compiler provides strict checks intended to catch mistakes before deployment. The beta is described as close to feature parity with Laravel PHP.

The framework includes routing and middleware, authentication, typed form and JSON validation, database models, migrations, queues, mail, WebSockets, Inertia support, and testing tools. Its type system checks inputs, authorization declarations, database columns and relationships, and route-generated URLs; explicit eager loading helps prevent N+1 queries, while typed secrets reduce accidental exposure. Database macros bind SQL values safely, and schema tools support PostgreSQL, MySQL, MariaDB, and SQLite. For background work, developers can use concurrent tasks and queues across several backends. Durable workflows provide a way to express long-running processes as a single asynchronous function, saving completed steps and resuming after delays, restarts, or deployments without consuming workers while waiting. Realtime broadcasting, a Rust-based Reverb server, transactional email, and React, Vue, and Svelte frontends round out the full-stack offering.

Read on laravel.com3 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Laravel Go

Laravel Go

Laravel for Go is a full-stack web framework with routing, validation, database tools, background jobs, workflows, and real-time events. It also supports Inertia for frontend integration and is open source under the MIT license. (github.com)

Laravel Go

Laravel Go

Laravel Go is a batteries-included Go framework that combines routing, data access, authentication, queues, workflows, and other features in one package. It uses standard Go patterns and Inertia to serve React, Vue, or Svelte pages without separate API boilerplate. (laravel.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.