Skip to content

ferrous-systems/rust-exercises

This branch is up to date with main.

Folders and files

NameName
Last commit message
Last commit date
Oct 9, 2023
Feb 24, 2025
Feb 4, 2025
Feb 14, 2025
Feb 13, 2025
Feb 14, 2025
May 22, 2024
Jun 2, 2023
Jan 26, 2024
Jun 19, 2024
Apr 25, 2023
Jan 2, 2025
Jun 19, 2024
Feb 17, 2025
Jun 19, 2024
Jul 13, 2023

Repository files navigation

Rust Exercises

This book contains a collection of Rust Exercises, written by Ferrous Systems. See ferrous-systems.com/training for more details or a custom quote. You can view this material on-line at https://rust-exercises.ferrous-systems.com.

We use these exercises as part of our Rust Training, but you are welcome to try them for yourself as well.

If you wish to fund further development of the course, why not book a training with us!

Reading the book

You can:

Building the material locally

To build the exercise book, run mdbook in the usual fashion:

$ cargo install mdbook
$ cargo install mdbook-mermaid
$ cd ./exercise-book
$ mdbook build
2024-07-01 11:51:21 [INFO] (mdbook::book): Book building has started
2024-07-01 11:51:21 [INFO] (mdbook::book): Running the html backend
$ ls -l book/index.html
-rw-r--r--  1 jonathan  staff  27975  1 Jul 11:51 book/index.html

You could use mdbook serve instead to start a webserver that serves up the book and also rebuilds the book every time you change a file.

To verify that every code example in the book compiles as expected, run:

mdbook test

To verify that all the examples build, we use the top-level build script build.sh. Note that running that script may require a valid CriticalUp token, as we use Ferrocene in our CI.

License

Creative Commons License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

We encourage the use of this material, under the terms of the above license, in the production and/or delivery of commercial or open-source Rust training programmes.

Copyright (c) Ferrous Systems, 2025