Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've spent the last several weeks porting a backend I had written in Go over to Rust (using Axum) and so far so good. But I don't know if I can call things in the Rust world like Axum/Actix/etc. "frameworks" anymore considering all the time I've had to spend researching/vetting crates to get the same functionality that comes out of the box in Spring/ASP.net/Django/etc.

Take handling datetimes for example. Do I use time or chrono? The initial developer/maintainer of chrono left[1] and for the longest time the crate was unmaintained while a CVE remained open[2] until a new maintainer finally came along and addressed it (I think?). All right, so, time it is then... but it uses its own custom format specifiers[3] that I had to get used to coming from the more familiar strftime used by other languages.

Or how about input/form validation. One of the most popular crates for that, validator, had its maintainer admit that they don't even use it themselves?[4] Of course I can already hear people yelling at me, "well, why don't you contribute then?!", and I certainly would love to if I could! But I have to finish what's in front of me first.

That being said, I still very much enjoy using Rust. Maybe less so for web-related projects. I just have to stay on an even keel despite the growing hype.

[1]: https://old.reddit.com/r/rust/comments/qamgyh/is_the_chrono_...

[2]: https://github.com/chronotope/chrono/issues/602

[3]: https://time-rs.github.io/book/api/format-description.html#v...

[4]: https://github.com/Keats/validator/issues/201



> But I don't know if I can call things in the Rust world like Axum/Actix/etc. "frameworks" anymore

A "framework" is a thing which calls your code rather than the other way around. You're confusing framework and "full stack" framework.

Actix or Axum are web frameworks in the same sense Flask or Sinatra are web frameworks: they deal with the HTTP lifecycle, and call your code when certain conditions are met (usually around routing).



Why are you porting from Go to Rust? Also, it is wise of you to stay away from any language Kool-Aid.




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

Search: