Learning Rust By Practice, narrowing the gap between beginner and skilled-dev through challenging examples, exercises and projects. https://practice.rs
Go to file
sunface c880d4d6a4 update ownership.md; 2022-02-25 21:50:28 +08:00
en update ownership.md; 2022-02-25 21:50:28 +08:00
zh-CN update ownership.md; 2022-02-25 21:50:28 +08:00
.DS_Store update readme.md 2022-02-24 14:11:32 +08:00
Readme.md udpate readme.md 2022-02-25 14:26:05 +08:00
deploy.sh add variable exercises 2022-02-24 15:50:01 +08:00
index.html udpate readme.md 2022-02-25 14:31:30 +08:00
refs.md add toc 2022-02-16 17:26:40 +08:00

Readme.md

Rust exercise (中文 Readme)

Greetings and welcome to exercise.rs If you have the following problems:

  • After learning some rust knowledge, you want make further step: do some exercises, but found unchallenging ones
  • Found nothing about rust toolchains, std, ascyn/.await topics
  • Still have no idea of what to do next, maybe you tried writing a demo /project, but... not that good or even worse: failed

Then you have come to a right place: here you can find a bunch of easy to hard exercises to improve your Rust skills which cover almost every topic in Rustthis will help you fill the gap of easy-to-learn and hard-to-use.

About exercises

  • You can edit exercise online and then run it online too
  • Your only gola is make every exercise comipile with NO ERRORS!
  • difficulty level: easy: 🌟 medium: 🌟🌟 hard: 🌟🌟🌟 hell: 🌟🌟🌟🌟

Contributing

We welcome all kinds of contributors, especially ones who has precious exercises.

Every exercise you have contributed will be annotated with your nickname and personal link, it's time to show yourself to the world!

Learning Rust

If you are a first-time Rust learner, here are some high quality learning resources :

difference to rustlings

Rustlings only contains small and easy exercises for junior rust devs. There is a big gap between learning Rust and using it in your projects.

Another limit for rustlings is that you have to download rustlings to local machine and compile it first before starting to learn.

difference to rust by example

Rust By Example is an excellent online book for learning Rustexercise.rs has some small advantages in :

  • more topics and exercisesspecially for the hard part of Ruste.g lifetime、smart pointers、threads 、async/.await etc
  • difficulty from easy to hardit will minimize the gap between learning and using in projects
  • up-to-date, e.g features which added in Rust 1.58 also have the corresponding exercises in exercise.rs
  • Both course.rs and exercise.rs are designed according to the CS courses in collegeso quliaty is the most important factor