Download them here in Releases.
Make sure you have rust installed:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Run an example ./examples/variables_and_constants.rs:
cargo run --example variables_and_constants
To verify all example code:
cd rust_course_material
cargo clippy --workspace --all-targets --tests --examples -- -D warnings
Some test from the examples are explicitly failing to build. Build all tests using
cargo test --examples
Install rustlings:
cargo install rustlings
Create the repo & enter:
rustlings init
cd rustlings/
Make a snapshot before solving exercises:
git add .
git commit -m "init"
You're set! Start the exercises:
rustlings
Open each file from the instruction & solve them one by one!!
If you want to run individual tests:
rustlings hint if1 # optional hint
rustlings run if1