Hacker News new | past | comments | ask | show | jobs | submit login

One common pattern I noticed among all rust projects is that they support a lot of languages by providing a native client except for rust.

I always wonder why this is the case. Is it due to lack of demand for it or because anyway the code is in rust so it is expected to be used as is (sometimes not possible at all to directly use the code like the recent edgedb showhn - though they have a conditions apply rust client)




It's lack of demand. Unfortunately there aren't that many people building a backend in Rust (they should, it's great!), so building a Rust library is not a top priority unfortunately. :(


Ya. I guess we need some more maturity in Rust web frameworks. Specifically something like RoR and with some corporate backing. Current solutions are okay but they don't inspire much confidence due to slow pace of development and gaps wrt to frameworks in other languages.

I'm using warp currently and recently did a load test on my backend. Performance was stunning so its definitely worth it. But these gaps do decrease the overall dev velocity as we have to make custom solutions where there aren't any.

For example, I had to write some custom code which auto generates all model classes from db schema including functions for lazy loading various properties on the classes and regular CRUD. Took me a solid couple of weeks which I could have spent else where if I was using Java with JPA or RoR. Same with another piece to generate a warp compatible routes file from annotations on functions (including generating the corresponding struct for gathering post bodies and calling the actual handler function with the struct members).

Worth it? Definitely. Wish its already available as some framework? Definitely!


We (as you can see) use Axum. It's new but great. It reuses a lot of the Rust ecosystem (Tokio, Hyper, Tower, Serde, etc), so it keeps on improving even without them changing anything. It also relies on a very strong infrastructure.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: