https://github.com/selflocking/rustlings
https://github.com/selflocking/rustlings
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/selflocking/rustlings
- Owner: Selflocking
- License: mit
- Created: 2024-04-03T14:42:34.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-08T15:41:34.000Z (about 2 years ago)
- Last Synced: 2025-08-30T23:44:25.633Z (10 months ago)
- Language: Rust
- Size: 171 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Authors: AUTHORS.md
Awesome Lists containing this project
README
# Rustlings
My solutions to the [Rustlings](https://github.com/rust-lang/rustlings) exercises.
Based on the Rustlings 5.6.1
## Installation
```bash
cargo install --force --path .
```
## Doing exercises
The exercises are sorted by topic and can be found in the subdirectory `rustlings/exercises/`. For every topic there is an additional README file with some resources to get you started on the topic. We really recommend that you have a look at them before you start.
The task is simple. Most exercises contain an error that keeps them from compiling, and it's up to you to fix it! Some exercises are also run as tests, but rustlings handles them all the same. To run the exercises in the recommended order, execute:
```bash
rustlings watch
```
This will try to verify the completion of every exercise in a predetermined order (what we think is best for newcomers). It will also rerun automatically every time you change a file in the `exercises/` directory. If you want to only run it once, you can use:
```bash
rustlings verify
```
This will do the same as watch, but it'll quit after running.
In case you want to go by your own order, or want to only verify a single exercise, you can run:
```bash
rustlings run myExercise1
```
Or simply use the following command to run the next unsolved exercise in the course:
```bash
rustlings run next
```
In case you get stuck, you can run the following command to get a hint for your
exercise:
```bash
rustlings hint myExercise1
```
You can also get the hint for the next unsolved exercise with the following command:
```bash
rustlings hint next
```
To check your progress, you can run the following command:
```bash
rustlings list
```