rust-by-practice/Readme.md

2.4 KiB
Raw Blame History

Rust By Practice (中文 Readme)

Greetings Rustaceans and welcome here if you have the following problems:

  • You have learned basics of Rust, and want to learn more, e.g do some exercises, but found easy ones
  • Practice Rust toolchains, std, ascyn/.await and more
  • Have no idea of what to do next, maybe you tried writing a demo /project, but... not that good or even worse: failed

Maybe you have come to the right place. Here are lots of easy to hard exercises and practices to improve your Rust skills which cover almost every topic in Rust.

In a word, this book will try to help you filling the gap between easy-to-learn and hard-to-use.

How to use

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

Contributing

We welcome all kinds of contributors.

Every exercise you have contributed will be annotated with your github name 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.59 also have the corresponding exercises in practice.rs
  • Both course.rs and practice.rs are designed according to the CS courses in collegeso quliaty is the most important factor
  • real practices