3 ms·
Any recommandation for a quality non-toy rust codebase to study?
by michaelmure 7mo ago
Any recommandation for a quality non-toy rust codebase to study?
- mlvljr 7mo ago[dead]
- maxbond 7mo agoTwo arbitrary picks: https://crates.io/crates/serde https://crates.io/crates/serde https://crates.io/crates/regex https://crates.io/crates/regex Anything covered by Gjengset's "decrusted" series: https://youtube.com/playlist?list=PLqbS7AVVErFirH9armw8yXlE6dacF-A6z https://youtube.com/playlist?list=PLqbS7AVVErFirH9armw8yXlE6... Sort of on the border between toy and not-toy; Gjengset implements a concurrent hash map: https://youtube.com/playlist?list=PLqbS7AVVErFj824-6QgnK_Za1187rNfnl https://youtube.com/playlist?list=PLqbS7AVVErFj824-6QgnK_Za1... [17hr recorded over 3 streams]
- josephg 7mo agoThe rust standard library is excellent. Start more or less anywhere, and click "view source". Or open up the source code files on github. There's often a lot more comments than code, which is kind of annoying. But it really is the best way to learn how a lot of good rust is written. Vec is a good read: https://doc.rust-lang.org/src/alloc/vec/mod.rs.html https://doc.rust-lang.org/src/alloc/vec/mod.rs.html Here's the lovely slice::binary_search_by: https://doc.rust-lang.org/src/core/slice/mod.rs.html#2967-2969 https://doc.rust-lang.org/src/core/slice/mod.rs.html#2967-29...