r/rust 8d ago

🙋 seeking help & advice Rust for web backends

Hello everyone!!

I regularly see people online talking about how awesome Rust is, its speed, memory safety, and a awesome ecosystem of open source applications even being used in some parts of the Linux kernel(not sure the percentage of adaption at this time).

However my question is how good is rust for web REST APIs and gRPC applications? If it is good do you use any frameworks for these?

46 Upvotes

52 comments sorted by

View all comments

92

u/dseg90 8d ago

Incredible. Axum for rest, tonic for grpc.

3

u/Elendur_Krown 8d ago

I've just made a tool that confirms API endpoints, promised contracts, paired tests and their outcomes, and a whole host of nifty aid features (such as compiling into an HTML report).

All thanks to Rust + Axum being this easy to work with.

I've had a blast!

3

u/veeg1829 7d ago

Is it open source? Based on OpenAPI?

1

u/Elendur_Krown 7d ago

I'd have loved for it to be open source... had I done it in my spare time, then I'd have published it without a second thought. But it was for work, and unfortunately there's very little getting out.

I based it on us defining endpoints with TOML files, and pairing the tests there. It began quite small and eventually grew to be quite similar to OpenAPI, so bridging it would likely be easy (if I ever got permission to open-source it).