News for hackers. Stuff that matters.
Re:Loco: The one-person Rust framework for side-projects and... by givemeethekeys on Thursday December 07, 2023 @08:19PM (#38564181)
How does Loco compare to Rocket, which is also supposed to be Rails-like?
Re:Loco: The one-person Rust framework for side-projects and... by nateb2022 on Thursday December 07, 2023 @08:41PM (#38564348)
Rocket is its own web framework, but Loco is built on top of axum. Axum is a little more lightweight and has a simpler/cleaner API. Loco also, if I'm not mistaken, is trying to take more of a batteries-included approach than Rocket.

According to the axum's readme, another feature that sets it apart is that "axum doesn't have its own middleware system but instead uses tower::Service. This means axum gets timeouts, tracing, compression, authorization, and more, for free. It also enables you to share middleware with applications written using hyper or tonic."

Re:Loco: The one-person Rust framework for side-projects and... by leftyspook on Thursday December 07, 2023 @08:43PM (#38564366)
I haven't tried Loco, but Rocket is not Rails-like. It does, to me, have the friendliest API among Rust frameworks, but it is nowhere near as battery-filled and opinionated as Rails.
Re:Loco: The one-person Rust framework for side-projects and... by teaearlgraycold on Thursday December 07, 2023 @08:57PM (#38564461)
Django is probably the only Rails-like framework that exists. Everything else is a wannabe
Re:Loco: The one-person Rust framework for side-projects and... by dysoco on Thursday December 07, 2023 @09:04PM (#38564522)
I would say Laravel qualifies as well
Re:Loco: The one-person Rust framework for side-projects and... by schneems on Thursday December 07, 2023 @09:14PM (#38564587)
I’m not in the Java world so I don’t know if it’s still a thing but the play framework was trying to be rails for Java.

Elixr has phoenix. Its more modular but the language itself was created by Jose a Rails core alum who at the time of leaving had the highest number of commits on the Rails.

Re:Loco: The one-person Rust framework for side-projects and... by lolinder on Thursday December 07, 2023 @09:11PM (#38564568)
Phoenix?