Skip to content

jaques-sam/rust_course_material

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Course Material

The slides

Download them here in Releases.

All code samples

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

Exercises

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published