Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Pointer-based linked lists and trees are generally quite hard to build in Rust because the borrow checker is not super happy with those types of data structures. If you want to build a binary tree, I would encourage you to store it in a Vec (or slab) with indexes instead of pointers. That should entirely sidestep all the issues you are running into. You may find Learn Rust With Entirely Too Many Linked Lists useful.
Whatever you feel like building, scratch an itch. I started with simple tools that I had personal pain points for, like collating markdown documents or having a way to run lightweight smoke tests. In my spare time I'm now working on a scuba diving database and map.
Whatever you feel like building, scratch an itch. I started with simple tools that I had personal pain points for, like collating markdown documents or having a way to run lightweight smoke tests. In my spare time I'm now working on a scuba diving database and map.
I started out by doing some of the Rustlings project, which teaches the basics. It's very nice to get started, https://github.com/rust-lang/rustlings. In the beginning I was very confused about many of the concepts, but search for Pascal Precht Rustlings on YouTube. He has good solutions and explanations.
And then I had a toy project this summer making a base64 en/decoder cli tool. That was great. Improved a bit on it every day, learned many new details of the language and actually got a pretty good tool out of it, https://github.com/skovmand/all_your_base
Currently I'm making a sudoku solver using backtracking. Also a lot of fun, and the community has been amazing in getting me unstuck with the rust-things I find hard (eg. generics!). https://github.com/skovmand/fabrik