r/rust • • 2d ago

🎙️ discussion Axum: Is 2027 the year of the fullstack rust dev?

I have been toying with axum on the job since a few weeks and why are we still building stuff in node and stuff?

As of today, I have uninstalled npm and unshackled. Rust ftw 🥳

0 Upvotes

7 comments sorted by

15

u/rodyamirov 2d ago

Axum is backend ... yes? And fullstack implies ... frontend?

We use axum in production; while I'm sure you can do something full-featured and "enterprise grade" I have never done so. But it's lovely for a simple server.

But that's not fullstack, is it? You can use rust as a frontend in a browser but it's not that great. I've played with Elm and friends but the "performance benefits" of rust disappear when you're constantly going back and forth from wasm to js to the DOM, and it's pretty clunky. The situation may have improved in the past year or two, but I would be surprised if it's fundamentally better.

2

u/nicoburns 2d ago

You can use rust as a frontend in a browser but it's not that great. I've played with Elm and friends but the "performance benefits" of rust disappear when you're constantly going back and forth from wasm to js to the DOM

I think the main benefit of "fullstack rust" is if you're actually doing server-side rendering of your frontend (e.g. for search engines, to support no-js clients, or as a first-load latency optimization). Then running your Rust-based client code on the server is significantly more efficient than running JS (and saves you shipping a JS runtime).

Similarly, if you also want to ship a desktop/mobile app with a shared codebase, then Rust based code is going to run more efficiently on those platforms.

But if you're not doing either of those things then the benefit is relatively limited. And the only real benefit (if you consider it one) is that you get to write in Rust.

1

u/I_SHANK_BATS 2d ago

Server rendered templates+data-star

3

u/carllerche 2d ago

Axum is not full stack. If you want full stack, check out Topcoat: https://github.com/tokio-rs/topcoat

-5

u/Beregolas 2d ago

No. The vast majority of people won't find rust fullstack to be worth it, because of the steep learning curve and lack of experienced devs for that stack.

If you mean it just became viable, also no: I have been using Leptos + axum for years now, and axum even longer than that.

It's viable for smaller projects and teams, but I am not conviced that frontend specifically is stable enough. (even though I enjoy it and it works great for me)

2

u/snack_case 2d ago

People aren't reading the code so the learning curve is low. I think Rust might just 'win' the popularity contest in the near term but the prize is a tsunami of generated crates and projects nobody has read.

-1

u/Designer-Suggestion6 2d ago

I disagree with you saying "steep learning curve". Throw AI at it be it Qwen, Google, whatever and watch the magic happen generating a solution for you with it. AI harnesses just removed the steep learning curve on every subject domain matter, but I'm not interested in every subject domain. I'm focused on certain particular areas here and there.

It's highly achievable for anyone to use Axum, provided you nudge it to do what you needs doing. AI will make recommendations along the way, however you need to remain at the helm in control because at times it goes overboard with bells and whistles along with hallucinating.

Axum rocks and it deserves to a bigger audience to use it and AI empowers everybody to do so. GO FOR IT!!!