This repository contains a collection of Rust code snippets inspired by The Rust Programming Language book and a few other references (see below). The primary purpose of this repository is to serve as a personal reference, helping me remember important concepts and techniques from these sources. The code might be a bit messy, and you'll eventually find some commented-out sections that serve as a reminder of how not to do things. But fear not! It could still be helpful for you to take a look at it, especially if you are short on time and won't go through the entire book yourself.
There's an alternative version of the "Rust Programming Language" book with interactive quizzes available here.
- Snippets: You'll discover concise code snippets that demonstrate specific Rust features, syntax, or idioms.
- Examples: Small, self-contained programs that showcase how to solve common problems using Rust.
- Comments: Some sections may have comments explaining why certain approaches were chosen or why specific code blocks exist.
cargo build
cargo run --bin
cargo run --bin rusty
cargo run --bin minigrep
cargo test
cargo run --example
cargo run --example <example>
cargo doc
cargo doc open
cargo check
cargo lint
cargo fix