r/rust • u/KeironLowe • 4d ago
đď¸ discussion Laravel Rust
Iâm primarily a PHP engineer, but wondering how the Rust Community feel about the announcement of Laravel Rust (https://laravel.com/rust)?
156
Upvotes
26
u/protocod 4d ago
I've learned programming by doing some Laravel websites a long time ago. Docker didn't exist, REST API wasn't a thing.
I've wonderful memories with Laravel. Great development experience. I tried other framework back then, Django, Ruby On Rails but my favorite stays Laravel.
Many years later, during my computer science degree I started to enjoy system programming more and now I'm doing rust professionally since 2021.
Axum is a great piece of software but it's like a low level library for making async Http server where something like Laravel is a battery included framework designed for productivity by using convention over configuration principle, scaffolding, ORM etc.
However programming and web development is so much different nowadays. I don't know if I would enjoy to do website like I did many years ago.
58
u/nicoburns 4d ago
Well damn. I think we can officially declare ourselves to be "web yet".
For those unaware, Laravel is one a very select few frameworks that competes with Ruby on Rails. Most language ecosystems do not have an equivalent.
A version for Rust is big deal.
13
u/mikidimaikki 4d ago
Damn! I think Topcoat is aiming for something similar as Laravel when it comes to productivity. Almost feels like April fools to see Laravel rewritten in Rust all the sudden, but I would expect there to be a long tail of bugs to be tackled. The first commit is less than two months ago btw: https://github.com/laravel/rust
26
u/Puspendra007 4d ago
Anyone used it? Performance? Speed? Any review?
Rust having a great structure already so what's special in this laravel rust?
18
u/real_serviceloom 4d ago
Looks pretty good ngl
20
u/Far-Habit-2713 4d ago edited 4d ago
Wow. This is actually nice!
Like exactly what o actually need to bootstrap new service. Skills included. Authentication and authorization. When it comes to frontedy i usually do simple backed generation with htmx for dynamic but im open for something new that will actually speed up development.
6
u/wartab 4d ago
Checked a bit of the documentation and this does seem pretty cool. It's building on top of Axum, Tokio, Serde etc.
10
u/dumindunuwan 3d ago edited 3d ago
Ok now this is getting out of control they just added https://github.com/laravel/go-framework . likewise they are destroying credibility they built with Laravel PHP, by doing too much.
https://github.com/laravel/rust-framework is the main repo : sort of 1:1 mapping of PHP framework structure + bcrypt password hash in 2026.
now https://github.com/laravel/go-framework meh
9
u/_nathata 4d ago
I don't hate it
3
u/jpmateo022 4d ago
It has a good architecture probably may bring more developers to learn Rust.
But I did not expect the Laravel team will be the one making the rust version because I thought they only focus on JS and PHP
3
u/Anbaraen 3d ago
Has anyone reviewed the code yet? I want to know if it's actually good, idiomatic Rust or if it's a vibecoded mess.
10
u/millenialSpirou 3d ago
looks like slop to me https://github.com/laravel/rust/blob/0.x/.agents/skills/writing-laravel-rust-apps/scripts/docs-path.sh
2
u/tastychaii 4d ago
Thanks OP for sharing
2
u/DavidXkL 3d ago
I would definitely prefer topcoat or Leptos over this for now đ
3
u/DryanaGhuba 4d ago
It's interesting, but as usual I stopped being happy about rust projects as they usually low effort llm driven
2
u/UncleStoat 3d ago
This is cool. However, sometimes using a big, do-it-all framework like Laravel is like using a sledgehammer to crack a nut - the older I get, the more lightweight I want my setups to be.
I'd like to see something for Rust that adds some of the functionality of vanilla PHP - PHP became as successful as it has because it's a Swiss Army knife for web developers, with a bunch of web-specific tools basically built into it - easy DB access, ways to handle state (cookies, server variables, environment variables, etc), built-in support for dealing with HTTP verbs (GET, POST, querystrings, form data, etc), methods to sanitise strings, and all without having to use additional libraries.
I love Rust as a language, but, right now, I don't feel like it's a great platform for general-purpose web development.
1
u/Beneficial_Owl_6445 4d ago
WoW
1
u/Alternative-Tie-4970 4d ago
I am completely out of the loop of this one. What is it trying to do?
1
u/kyle787 4d ago
This is kinda crazy actually. I remember using Laravel years ago when it just came out, made Yii and symfony feel like working with sticks and stones lol
1
u/dhbradshaw 3d ago
Love it
1
u/deanrihpee 3d ago
ah Laravel, my previous jobs are maintaining and updating legacy servers using Laravel, now we have rust version? might try for a bunch of test projects that has been dead and have been migrated to other framework for a long time
1
u/Phosphorus-Moscu 3d ago
I prefer how Summer RS handles routes, having a singleton managed through macros is even better than the approach proposed for Laravel in this case
Besides I don't hate it, though, I think it's pretty nice, and maybe I'll build some things using LaravelRS
1
u/bogoris76 3d ago
where is rust perl ?
1
u/UltramanQuar 3d ago
hey it looks good actually will try it out
1
u/mrtaurus 2d ago
I think it was the next best choice. PHP has been brought to a stall with these ancient security bugs. The next closest contender offering similar speed and better security is Rust.
Likely vibe-migrated to Rust from PHP. I've done that before. I'm sure they can too.
1
u/schungx 2d ago
In Rust we've had Loco for a while.
Works great except that batteries included means pretty long compile times.
I wonder what this adds that Loco doesn't have.
1
u/MrDiablerie 2d ago
Iâm more interested in what the existing Laravel community feels about it. Seems like itâs going to unnecessarily split the community. As a Rust developer I donât have interest in Laravel
1
u/sp4mserv 2d ago
As someone who used Laravel quite a while in the early days, and learned Rust, I say this is awesome.
Laravel is my get-go when explaining how frameworks can be easy, feature rich, well organized and maintained, but this is next level. I will certainly give it a go with agentic AI with my next web/api based project.
1
u/HolyPad 16h ago
For Laraplugins I put up a directory of laravel rust crates that declares laravel rust support and would work nice with your projects https://laraplugins.io/rust
1
u/bearpaw- 16h ago
I guess it is some sort of a wrapper that feels like Laravel? I am familiar with Axum and can do pretty much anything I want with it so not sure if I would want jt
1
u/fat_coder_420 4d ago
We already have axum.
I dont think its meant for rust developers. Everyone is re-writing in rust since its so easier with AI agents. So i think its primarily for php developers wanting to migrate their apps to php but have a familiar php/laravel architecture.
1
u/source-drifter 4d ago
i though we have laravel at home
https://loco.rs/
1
u/dumindunuwan 3d ago edited 3d ago
10x speed and 8x less memory over Laravel PHP
https://laravel.com/rust/docs/structure layered folder structure instead modular, not the best way to write in Rust. However with tokio, serde, serde_json; A wrapper. Definitely this will outperform Laravel PHP implementations but not Axum, Ntex or Actix.
Also https://github.com/laravel/rust no /crates folder or similar layout. Feels this is just 1:1 Laravel PHP -> Laravel Rust rewrite which will make it easier to adapt Laravel PHP devs to Laravel Rust with 10x speed and 8x less memory consumption.
However, don't write PHP in Rust Syntax!
Same with PHP in Go Syntax! Ex. https://www.goravel.dev
1
u/Sad_Journalist3328 4d ago
I think best thing in Rust and development is https://github.com/cornucopia-rs/cornucopia
I have done both ORM-s and SQL and: SQL is query language that is build for queries, ORM looses percision and abstracts away that can, and I would claim, needs to be clear and direct.
It is awesome that there is optionated full "do it like that" set of rules, i believe LLMs will be benefiting also.
1
u/FiammaOfTheRight 3d ago
Benchmarks are strange. Also, my lazy ass internal framework that i did because i needed to handle client disconnects somehow outpreforms this on same bench even though i have no idea how to write proper server.
Compile times are going to cook vibecoding on Rust vs LaraPHP, slowing down the verification loop. Code being in Rust going to cook a lot of devs who cant read it, leading to further "dont read ship". Abstraction over using sqlx for DB is going to unsolve main bottleneck - db operations
Not sure whats the point, considering that most of stuff was advertised as "easy to use with llms". Well, just tell llm go get you hyper + sqlx and roll with it, it'll be faster.
-2
u/TTachyon 4d ago
Where did they announce it? This is the first I heard of it.
Until some good reasons are presented why should anyone use this, I don't have an opinion. But also when I hear framework/batteries-included, I get a bad feeling. These kind of words have a bad reputation for me.
0
u/[deleted] 4d ago
[deleted] â view deleted comment