rust-by-practice/Readme.md

48 lines
2.6 KiB
Markdown
Raw Normal View History

2022-02-10 23:02:09 -06:00
# Rust exercise
2022-02-23 03:38:55 -06:00
> 中文 Readme [传送门](./zh-CN/Readme.md)。
2022-02-23 05:03:46 -06:00
Greetings and welcome to `exercise.rs` If you have the following problems:
2022-02-23 03:38:33 -06:00
2022-02-24 02:48:20 -06:00
- After learning some rust knowledge, you want make further step: do some exercises, but found unchallenging ones
2022-02-23 03:38:33 -06:00
- Found nothing about rust toolchains, std, ascyn/.await topics
2022-02-23 03:41:14 -06:00
- Still have no idea of what to do next, maybe you tried writing a demo /project, but... not that good or even worse: failed
2022-02-23 03:38:33 -06:00
2022-02-24 02:48:20 -06:00
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.
2022-02-23 03:38:33 -06:00
2022-02-23 03:11:31 -06:00
## Online Reading
This book is written in English and Chinese, you can pick up the language you are familiar with:
- English: [https://exercise.rs](https://exercise.rs)
2022-02-23 03:38:33 -06:00
- 简体中文: [https://zh.exercise.rs](https://zh.exercise.rs)
2022-02-23 03:11:31 -06:00
2022-02-24 00:11:32 -06:00
## About exercises
2022-02-24 01:58:35 -06:00
- The only correct way: make exercise comipile with NO ERRORS!
2022-02-24 00:11:32 -06:00
- difficulty level: easy: 🌟 medium: 🌟🌟 hard: 🌟🌟🌟 hell: 🌟🌟🌟🌟
- Everything is online: reading, editing, testing
2022-02-24 01:50:01 -06:00
2022-02-24 00:11:32 -06:00
## 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!
2022-02-23 03:11:31 -06:00
## Learning Rust
If you are a first-time Rust learner, here are some high quality learning resources :
- [The Book](https://doc.rust-lang.org/book/index.html) for English speakers
- [Rust语言圣经(The Course)](https://course.rs) for Chinese speakers, it covers nearly all the topics in Rust
## difference to rustlings
[Rustlings](https://github.com/rust-lang/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](https://doc.rust-lang.org/stable/rust-by-example/) is an excellent online book for learning Rust`exercise.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