Skip to content

🌟 Exercise solutions to get you used to reading and writing Rust code!

Notifications You must be signed in to change notification settings

freddydc/rustlings-exercises

Repository files navigation

Rustlings Exercises

Greetings and welcome to rustlings exercises. This project contains exercise solutions to get you used to reading and writing Rust code.

Table of Contents

How to work on this project?

The repository and the entire solution module is divided by Git tags. Start from the git tag corresponding to the module you are interested in:

  1. Clone the repository, if you haven't already:
git clone git@github.com:freddydc/rustlings-exercises.git
  1. Update tag information:
git fetch --tags
  1. List the available tags:
git tag

You should see something like:

1.0.0
  1. Start a new branch from the point you want:
git checkout -b name-of-my-branch chosen-label
# For example, to create a branch named 'dev' from '1.0.0' tag
git checkout -b dev 1.0.0

🔥 That's all, you can start with all the changes included up to that module.

💡 In the Releases section you can find the entire list of tags.

Exercise to Book Chapter mapping

Exercise Book Chapter
variables §3.1
functions §3.3
if §3.5
move_semantics §4.1
primitive_types §4.3
structs §5.1
enums §6
modules §7
collections §8.1, §8.3
strings §8.2
error_handling §9
generics §10
option §10.1
traits §10.2
tests §11.1
standard_library_types §13.2
threads §16.1
macros §19.6
clippy n/a
conversions n/a
advanced_errors n/a

Found a bug or improvement?

Help other students with what you just discovered that would make this course and repository so much better.

  • In Issues you can report bugs, add suggestions and comments.
  • For its part, the Pull Requests will always be open to receive specific improvements.

About

🌟 Exercise solutions to get you used to reading and writing Rust code!

Topics

Resources

Stars

Watchers

Forks

Languages