No description
- Rust 100%
| .vscode | ||
| custom | ||
| .gitignore | ||
| Cargo.toml | ||
| day_1.md | ||
| day_2.md | ||
| day_3.md | ||
| README.md | ||
Rust Exercises
This repository contains the exercises that go along with the Rust for Embedded Developers WBK.
Below, you'll find additional learning resources that you may want to keep in reach while learning Rust. The list is intentionally kept short and opinionated.
Get started with the exercises for day 1.
Learning resources
- The Book, for learning methodically
- Rust By Example, for looking things up
Practice resources
- language & syntax basics: rustlings
- Rust-specific exercises with provided tests: Exercism
Setup recommendation:
Use the CLI to work locally.
You can keep your solutions in this repo by configuring the workspace:
You need to create an account on Exercism, you can use your ZHAW address if you don't want to use your private one.exercism configure --workspace rust-exercises/exercism - general programming exercises (text-in, text-out): Advent of Code
Setup recommendation:
Simply run
cargo newfor each exercise and copy-paste the input data. You can do it right in this repo for convenience, if you like.
Ecosystem Wegweiser
- List of clippy lints.
Clippy has many lints that are allowed by default.
You can activate these if you want to impose even higher restrictions on your code.
For example, add the following to
Cargo.tomlto warn against all arithmetic expressions that can overflow:[lints.clippy] arithmetic_side_effects = "warn" - community-driven shortlist of high-quality libraries: blessed.rs
- library documentation: docs.rs
- handy shortcut:
docs.rs/<library-name> - example for the
axumcrate: docs.rs/axum
- handy shortcut:
- community-driven newsletter: This Week in Rust
Slides
The slides for the workshop are NOT intended as reference material, but you can find them here anyway: https://github.zhaw.ch/pages/rust-wbk/noser