Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages