mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-28 06:49:19 +00:00
72 lines
1.0 KiB
Markdown
72 lines
1.0 KiB
Markdown
|
||
# [Rustlings](https://rustlings.rust-lang.org) 🦀
|
||
|
||
|
||
|
||
|
||
|
||
Small exercises to get you used to reading and writing [Rust](https://www.rust-lang.org) code - _Recommended in parallel to reading [the official Rust book](https://doc.rust-lang.org/book) 📚️_
|
||
|
||
|
||
|
||
Visit the **website** for a demo, info about setup and more:
|
||
|
||
|
||
|
||
## ➡️ [rustlings.rust-lang.org](https://rustlings.rust-lang.org) ⬅️
|
||
|
||
|
||
## Quick start
|
||
|
||
### Installation
|
||
|
||
Installing Rustlings
|
||
|
||
The following command will download and compile Rustlings:
|
||
|
||
|
||
|
||
``` cargo install rustlings ```
|
||
|
||
|
||
|
||
### Initialization
|
||
|
||
After installing Rustlings, run the following command to initialize the rustlings/ directory:
|
||
|
||
``` bash
|
||
rustlings init
|
||
```
|
||
|
||
|
||
|
||
Now, go into the newly initialized directory and launch Rustlings for further instructions on getting started with the exercises:
|
||
|
||
```
|
||
cd rustlings
|
||
```
|
||
|
||
|
||
|
||
### Starting Rustlings
|
||
|
||
rustlings
|
||
|
||
|
||
|
||
## Get Back To Practice
|
||
|
||
Navigate to Rsustlings Directory:
|
||
|
||
```
|
||
cd rustlings
|
||
```
|
||
|
||
then run:
|
||
|
||
```
|
||
rustlings
|
||
```
|
||
|
||
Happy Learning!
|