logoalt Hacker News

tonyedgecombetoday at 2:46 PM1 replyview on HN

I like Rust a lot but I'm not sure it would come very high up my list for web applications.


Replies

echelontoday at 3:24 PM

Axum and Actix are phenomenal web frameworks.

The type system and error handling ergonomics make it easier to write defect-free code than, say, Go or Java.

Simple servers are request scoped and mostly feature linear request handling, so you're writing simple vanilla Rust without the complex pointer semantics that you would use for systems programming. The async pieces aren't difficult either.

Serde-annotated structs are the best serialization/deserialization story anywhere. It integrates super ergonomically into Axum and Actix to make writing request handlers a breeze. They're super easy to read, too.

show 2 replies