20
submitted 3 weeks ago by ClusterBomb to c/rust@lemmy.ml

Hey there! I'm starting my journey to the learning of Rust. I have been coding only with Python for 6 years now and last year, I had to code in JavaScript using VueJS for my job (I never workedeon frontend).

Now, I have a personal project idea which I'd like to create. I could do it in Python but I want to learn Rust. I've looked up on the Internet but may be some answers are too old or someone here can point me to something I haven't seen yet.

What do you recommand for webdev? I guess I need to code the back in Rust and use a JavaScript framework for the front. My backend will be for a REST API (my app will need to manage users and organisations).

Bonus question if you can recommend a BDD framework. I think there is something named Cucumber. Is it good?

Thanks a lot ♥️🦀

top 6 comments
sorted by: hot top controversial new old
[-] asudox@discuss.tchncs.de 9 points 3 weeks ago* (last edited 3 weeks ago)

I mostly use Axum (backend) with Leptos (frontend with WASM). If possible, I'd always want to use one single language for everything.

[-] uint32@discuss.tchncs.de 7 points 3 weeks ago

For backend development Axum seems to be the best choice. If you want to go full stack rust, have a look at dioxus. Seems the most polished options available atm

[-] orclev@lemmy.world 4 points 3 weeks ago

Actix-Web was one of the original web frameworks and is still very popular and well supported. That said, it's in the process of being replaced by Axum which is by the people who created Tokio (the async framework underlying both Actix-Web and Axum). Axum is fairly well supported now, although maybe not quite as complete as Actix-Web.

[-] dessalines@lemmy.ml 4 points 3 weeks ago

Leptos for front end, actix or axum for back end.

[-] TehPers@beehaw.org 3 points 3 weeks ago

For frontend, there are cool Rust frameworks like Yew, but if it's a "real" project then just go with a standard JS framework like Next.js instead.

For backend, Next.js (and many others) can also do backend, but if you want to use Rust, then I recommend axum. It's pretty much my goto Rust backend library.

[-] Templa@beehaw.org 2 points 3 weeks ago

I am currently learning rust and decided to use Actix Web for my project, mostly because it is the framework being used by Lemmy.

You can use Rust on both backend and frontend if you feel like it, everything is possible with WebAssembly.

this post was submitted on 30 Nov 2024
20 points (100.0% liked)

Rust Programming

8234 readers
85 users here now

founded 5 years ago
MODERATORS