21 releases (1 stable)
1.0.0 | Oct 6, 2022 |
---|---|
1.0.0-alpha.1 | Aug 27, 2022 |
0.5.0 | Jun 4, 2022 |
0.5.0-alpha.1 | May 31, 2022 |
0.1.5 | Apr 8, 2022 |
#881 in Filesystem
46 downloads per month
1MB
3.5K
SLoC
otarustlings
otarustlings
exercise platform. Clone of rustlings.
The point of otarustlings
is to learn Rust with hands on exercises and small projects.
Installation
cargo install otarustlings
Requires Rust 1.56 or higher (2021 edition)
Usage
The otarustlings
exercises are initialized after which the user starts otarustlings
to constantly retry compiling and testing the exercise.
The user is supposed to make the exercises compile and pass all the tests.
The semantics of the exercises are usually written as comments. If you see a _
in an invalid position, you need to replace it with something else.
If you see a // TODO
or todo!()
you are supposed to do what's called programming, or coding, at the position of the comment.
Once the exercise is completed, i.e. it compiles and passes the tests, it is marked with a check mark ✓
in the menu. Try to make all of them green!
init
To create the initial exercise directory structure and write the exercises, use:
otarustlings init
The command creates a directory called exercises
in the current directory.
Note:
init
does not overwrite old exercises.
start
To start testing your changes, use:
otarustlings start
The command must be issued in the parent directory of exercises
, i.e. the same directory init
was called in.
The first thing that is shown is a menu of the exercises. Using up and down arrows, one can change the selection and pressing enter will start testing it.
All changes to the file are monitored and tested. The test output is shown in the terminal.
To return to menu, press Q
or ESC
.
To quit otarustlings
, press Q
or ESC
in the menu.
Dependencies
~14–26MB
~391K SLoC