otarustlings

Crates.iootarustlings
lib.rsotarustlings
version1.0.0
sourcesrc
created_at2022-04-07 06:15:40.241054
updated_at2022-10-06 07:01:21.257147
descriptionotafablab rustlings
homepage
repositoryhttps://gitlab.com/otafablab/otarustlings
max_upload_size
id563472
size1,265,712
Niklas Halonen (xhalo32)

documentation

README

otarustlings

gitlab crates.io docs.rs build status course material

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

asciinema

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.

Commit count: 174

cargo fmt