hn.today

Introducing Laravel Rust

laravel.com19 points5 comments
Screenshot of Introducing Laravel Rust

Laravel Rust is a beta full-stack web framework that brings Laravel’s conventions and broad feature set to Rust, redesigned around Rust’s type system and asynchronous runtime rather than copied directly from Laravel PHP. Built on Axum and Tokio, it makes request handling, database access, queues, and other services non-blocking. Internal benchmarks on Laravel Cloud report up to 18 times the speed of Laravel PHP, with lower CPU and memory use. The framework emphasizes compile-time checks and built-in conventions, including agent skills intended to help coding assistants produce and test idiomatic code.

Its features cover routing, middleware, sessions, authentication, typed request validation, models and relationships, migrations, raw SQL, background jobs, email, WebSockets, and Inertia-powered frontends. Rust types help catch mismatched database fields and invalid inputs before deployment; request handlers run only after authorization and validation, while restricted fill structs reduce mass-assignment risks. Relationships must be loaded explicitly to avoid accidental N+1 queries, and SQL macros bind captured values safely. Queues support several backends, while durable workflows can pause for days or weeks without occupying workers and resume after restarts or deployments. The release also includes concurrency utilities, broadcasting with a Rust Reverb server, mail transports, and testing and deployment tools. The framework is described as close to feature parity with Laravel PHP, with remaining gaps expected to close soon.

Read on laravel.com5 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

Show HN: Rust Commander

Show HN: Rust Commander

Rust Commander is a Rust terminal file manager modeled on Midnight Commander, with dual-pane navigation, a persistent shell, archive and remote browsing, and background file operations. Version 0.3.1 adds file-change alerts, viewer copy controls, customizable skins, and faster SFTP previews and copying. (github.com)

The daily digest

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