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.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.