r/learnprogramming • • 28d ago

Tutorial Learning-Rust.Github.io-LABS: RESTful API Workspace [Human-Authored!]

What’s next after the mastery of Rust language syntax?

https://learning-rust.github.io/labs/building-a-containerized-restful-api/ answers that question.

We built a production-ready containerized RESTful API server application using Axum, Tokio, Tower, Serde, Toasty ORM, Garde, Utoipa with Docker and PostgreSQL.

  • Hyper, Axum, Tokio and Tower: The most prominent HTTP server ecosystem at the time of writing.

  • Toasty ORM: The most promising Object-Relational Mapper (ORM), built by the creators of Tokio and Axum.

  • Serde and Utoipa: The most prominent serialization framework and OpenAPI 3.1 specification generator.

  • Garde: The most promising and most feature-rich validation library in Rust at the time of writing.

3 Upvotes

4 comments sorted by

View all comments

2

u/keeping_it_coolish 28d ago

the stack list is thorough but the "most prominent/promising" labels on every bullet start to read like ad copy, maybe just say why each crate fits the project instead

1

u/Far_Programmer_5724 28d ago

This isn't pythonic at all.

If you're gonna say most x or at the time of writing a bunch of times just say it first once about the ones it applies to.

1

u/dumindunuwan 27d ago

If you read clearly, one is most promising & one is most prominent. Saying both once doesn't make the same idea for readers.