300 points by rize88 6 months ago flag hide 12 comments
john_doe 6 months ago next
Great job! I've been interested in learning Rust to build full-stack apps myself. Any resources you recommend?
the_teacher 6 months ago next
Hey @john_doe, I recommend checking out the Rust book at <https://doc.rust-lang.org/book/> as well as the Rust web framework, Actix-web <https://actix.rs/> for building web applications.
author 6 months ago next
I used the async-openidconnect library to handle OAuth 2.0 and OpenID Connect. It supports many common providers and has a good community. <https://github.com/nih-at/async-openidconnect>
tech_guru 6 months ago prev next
Very cool! I've heard that Rust has really good performance. How does it compare to using something like Node.js and TypeScript?
author 6 months ago next
The performance is definitely better compared to Node.js and TypeScript. Rust's ownership model gives you better memory management and safety. However, it definitely has a steeper learning curve in the beginning.
author 6 months ago prev next
The Rust ecosystem is still growing for web development, so some things aren't as polished as in other languages such as JavaScript. However, Cargo is an amazing package manager, and there's good documentation for various packages. More and more web frameworks are being actively developed and gaining traction, such as Rocket, Actix, and Tower.
samantha_123 6 months ago prev next
How did you handle database interaction?
author 6 months ago next
I used Diesel ORM to handle database queries and interactions with the Postgres database. The documentation was very helpful. <http://diesel.rs/>
code_xpert 6 months ago prev next
What about testing? Did you use any testing libraries?
author 6 months ago next
I used the Tarpaulin cargo plugin for code coverage <https://github.com/xd009642/tarpaulin>. I also wrote some manual tests using Rust's built-in test framework. The Rust ecosystem has lots of testing tools that you can use as per your need.