News for hackers. Stuff that matters.
Re:Ask HN: Anyone Using Rust for Web Development? by mleonhard on Saturday June 24, 2023 @05:20PM (#36462744)
There are two problems with using Rust for web servers:

1. The only production-ready Rust web servers require writing async request handlers. Async Rust is not fun.

2. The only good Postgres client library is async: https://crates.io/crates/sqlx

I'm trying to remedy the first problem with https://crates.io/crates/servlin .

Solving the second problem will be another project. I hope someone else does it. There is https://crates.io/crates/diesel but it has the same problem as async Rust: incomprehensible build errors.

Re:Ask HN: Anyone Using Rust for Web Development? by misterio7 on Saturday June 24, 2023 @08:08PM (#36463921)
Honest question: what is it that you dislike in async rust? I personally find it is pretty straightforward
Re:Ask HN: Anyone Using Rust for Web Development? by mplanchard on Saturday June 24, 2023 @08:10PM (#36463929)
I also don’t have any real issues with async rust. It would be nice if there were a better functional-style interface than what you can get with FuturesExt, but you just drop to procedural style when you need to and it’s fine.
Re:Ask HN: Anyone Using Rust for Web Development? by misterio7 on Saturday June 24, 2023 @08:15PM (#36463957)
Yeah the only painpoint I have is that it's awkward to use async inside closures, otherwise, things are pretty smooth IMO.