Download them here in Releases.
Make sure you have rust installed:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shRun an example ./examples/variables_and_constants.rs:
cargo run --example variables_and_constantsTo verify all example code:
cd rust_course_material
cargo clippy --workspace --all-targets --tests --examples -- -D warningsSome test from the examples are explicitly failing to build. Build all tests using
cargo test --examplesInstall rustlings:
cargo install rustlingsCreate 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:
rustlingsOpen 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