An open API service indexing awesome lists of open source software.

https://github.com/dxphilo/rustlings

Solutions for the rustlings challenges
https://github.com/dxphilo/rustlings

Last synced: 2 days ago
JSON representation

Solutions for the rustlings challenges

Awesome Lists containing this project

README

          

# rustlings 🦀❤️

Greetings and welcome to `rustlings`. This project contains small exercises to get you used to reading and writing Rust code. This includes reading and responding to compiler messages!

_...looking for the old, web-based version of Rustlings? Try [here](https://github.com/rust-lang/rustlings/tree/rustlings-1)_

# Exercise to Book Chapter mapping

| Exercise | Book Chapter |
| ---------------------- | ------------------- |
| variables | §3.1 |
| functions | §3.3 |
| if | §3.5 |
| primitive_types | §3.2, §4.3 |
| vecs | §8.1 |
| move_semantics | §4.1-2 |
| structs | §5.1, §5.3 |
| enums | §6, §18.3 |
| strings | §8.2 |
| modules | §7 |
| hashmaps | §8.3 |
| options | §10.1 |
| error_handling | §9 |
| generics | §10 |
| traits | §10.2 |
| tests | §11.1 |
| lifetimes | §10.3 |
| iterators | §13.2-4 |
| threads | §16.1-3 |
| smart_pointers | §15, §16.3 |
| macros | §19.6 |
| clippy | §21.4 |
| conversions | n/a |

### Functions
+ [functions1.rs](/exercises/functions/functions1.rs)
+ [functions2.rs](/exercises/functions/functions2.rs)
+ [functions3.rs](/exercises/functions/functions3.rs)
+ [functions4.rs](/exercises/functions/functions4.rs)
+ [functions5.rs](/exercises/functions/functions5.rs)

### Hashmaps
+ [hashmaps1.rs](/exercises/hashmaps/hashmaps1.rs)
+ [hashmaps2.rs](/exercises/hashmaps/hashmaps2.rs)
+ [hashmaps3.rs](/exercises/hashmaps/hashmaps3.rs)

## Quiz 2
+ [quiz2.rs](/exercises/quiz2.rs)

## Options
+ [options1.rs](/exercises/options1.rs)
+ [options2.rs](/exercises/options2.rs)
+ [options3.rs](/exercises/options3.rs)