rust-by-practice/Readme.md

45 lines
2.3 KiB
Markdown
Raw Normal View History

2022-02-25 19:56:55 -06:00
# Rust By Practice ([ไธญๆ–‡ Readme](./zh-CN/Readme.md))
2022-02-25 00:26:05 -06:00
2022-02-26 23:01:40 -06:00
- Online Reading: [https://practice.rs](https://practice.rs)
2022-02-25 00:24:23 -06:00
2022-02-25 19:56:55 -06:00
Greetings Rustaceans and welcome here๏ผŒ if you have the following problems:
2022-02-23 03:38:55 -06:00
2022-02-25 19:56:55 -06:00
- 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
2022-02-23 03:38:33 -06:00
2022-02-25 19:56:55 -06:00
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.
2022-02-23 03:38:33 -06:00
2022-02-25 19:56:55 -06:00
In a word, this book will try to help you filling the gap between easy-to-learn and hard-to-use.
2022-02-23 03:38:33 -06:00
2022-02-25 19:56:55 -06:00
## How to use
- You can edit exercises online and also run it online
- **Your only goal is make every exercise comipile with NO ERRORS!**
2022-02-24 00:11:32 -06:00
- difficulty level: easy: ๐ŸŒŸ medium: ๐ŸŒŸ๐ŸŒŸ hard: ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ hell: ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ
2022-02-24 01:50:01 -06:00
2022-02-24 00:11:32 -06:00
## Contributing
2022-02-25 19:56:55 -06:00
We welcome all kinds of contributors.
2022-02-24 00:11:32 -06:00
2022-02-25 19:56:55 -06:00
Every exercise you have contributed will be annotated with your github name and personal link, it's time to show yourself to the world!
2022-02-24 00:11:32 -06:00
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 :
2022-02-27 06:34:54 -06:00
- more topics and exercises๏ผŒspecially for the hard part of Rust๏ผŒe.g string, lifetime, smart pointers, threads and async/.await etc
2022-02-23 03:11:31 -06:00
- difficulty from easy to hard๏ผŒit will minimize the gap between learning and using in projects
2022-02-26 23:01:40 -06:00
- up-to-date, e.g features which added in Rust 1.59 also have the corresponding exercises in `practice.rs`
- real practices
2022-02-23 03:11:31 -06:00