Profile avatar
iolivia.me
πŸ‘©β€πŸ’» staff eng πŸ¦€ post a lot about rust and rust gamedev ✍️ wrote https://sokoban.iolivia.me πŸ”₯ blog at https://iolivia.me 🧡 weekly #rustlang threads every Thursday - subscribe here https://forms.gle/Tcm7cAkLt4NF9ZCZ9
676 posts 543 followers 74 following
Getting Started
Active Commenter

This Thursday's #rustlang thread is ready to go, hope y'all are ready! Starting this Thursday it will be be published here but also sent over email in the evening, so if you want to email subscribe here forms.gle/vY6zXE21Dkwa... πŸ¦‹ πŸ¦€

#rustlang Crate Highlight ✨validator ✨ This crate gives you field-level validation via custom derive macros. Perfect for web APIs, forms, or anything where you want to check emails or "this number must be > 0" without manually writing checks everywhere. πŸ“¦ Crates:

Hey all πŸ‘‹ In January this year I started Thread Thursdays, which is every Thursday I post a thread about #rustlang fundamentals πŸ¦€ My goal is to help you learn 1% more Rust with every thread, using simple examples that describe complex topics πŸ¦‹ Here are some of the best threads so far πŸ§΅πŸ‘‡

πŸͺ’ Trait Bounds in #rustlang Generics in #rustlang are powerful, but they can be tricky to master. One of the key concepts is trait bounds, which allow you to specify in an expressive way what a type can do. Let's look at a concrete example πŸ§΅πŸ‘‡

#rustlang Crate Highlight ✨time ✨ I started using this recently as a lighter alternative to chrono. There's no unsafe and it has a really clean API. Found it really good for basic formatting, parsing, and date arithmetic. It’s faster in some benchmarks too. πŸ“¦ Crates:

πŸ”— Learn Pointer Types in #rustlang with too many Linked Lists Let's build too many linked lists with each pointer type to understand their trade-offs, limitations, and use cases. Let's go 🧡 πŸ‘‡

Has anyone used Box::leak or seen it used in a very appropriate setting? #rustlang