This is a modified version of the original rustlings repository. The original repository can be found here. On top of the original exercises, this repository contains 10 more exercises to help people enhance their Rust Skills. The extra exercises are implementing common data structures and algorithms in Rust. Sure you will have fun solving them! 🎉
Solutions for the rustlings exercises. The reason why I create this solution repo is that I struggled quite a bit when working on rustlings and I can't find a solution repo that is all up-to-date to 2024, even if there is, they are mostly magic solutions. I added some of my explanations to some of the solutions, but I'm not sure if they are correct, so please feel free to correct me if you find any mistakes. And if there is any better solution for questions, please let me know or create a PR, I'll be happy to merge it. Hope we can both go further in rust together!
- excute
rustlings watch
- run
rustlings run next # run the next unsolved exercise
# or
rustlings run ${exerciseName} # run single exercise
- hint
rustlings hint next
# or
rustlings hint ${exerciseName}
- check progress
rustlings list
Exercies | Progress | Code |
---|---|---|
intro |
2/2 | 🔗 |
variables |
6/6 | 🔗 |
functions |
5/5 | 🔗 |
if |
3/3 | 🔗 |
vecs |
2/2 | 🔗 |
primitive_types |
6/6 | 🔗 |
move_semantics |
6/6 | 🔗 |
structs |
3/3 | 🔗 |
enums |
3/3 | 🔗 |
strings |
4/4 | 🔗 |
modules |
3/3 | 🔗 |
hashmaps |
3/3 | 🔗 |
options |
3/3 | 🔗 |
error_handlings |
6/6 | 🔗 |
generics |
2/2 | 🔗 |
traits |
5/5 | 🔗 |
lifetimes |
3/3 | 🔗 |
quiz1 |
1/1 | 🔗 |
quiz2 |
1/1 | 🔗 |
quiz3 |
1/1 | 🔗 |
iterators |
5/5 | 🔗 |
smart_pointers |
4/4 | 🔗 |
macros |
4/4 | 🔗 |
conversions |
5/5 | 🔗 |
threads |
3/3 | 🔗 |
clippy |
3/3 | 🔗 |
tests |
9/9 | 🔗 |
algorithm |
9/9 | 🔗 |
I know how hard it is when I'm doing the rustlings exercises, so I hope this repo can help you. If you have any questions, please feel free to open an issue or contact me. Thanks for your support! 🙏
Written by @Tommy Shu🥳