A simple collection of lessons that I used to get started with the Rust Programming language.
If you already have Rust setup, you can skip this section.
Windows: https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe
MacOS/Linux/WSL: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
WSL means Windows Subsystem for Linux
For more information, check out the Rust installation guide.
If you wish to setup the project locally, you can clone the repositories and follow the guide below to run each lesson and create new ones.
git clone https://github.com/geekygeeky/rust-full-course
To run a lesson, just navigate into the directory and use the make run
command. This would compile the lesson using the Rust compiler and also run the lesson.
If you want to run the 1_primivitive_data_types
lesson. Use the command below.
# We are currently inside the `rust-full-course` directory
$ make run p=1_primivitive_data_types
To create a lesson, make sure you are in the root directory then run the make run p=<new-lesson>
command. This would create the barebones of what you need to get started running your lessons.
Replace
<new-lesson>
with your desired lesson name, e.g.make run p=rust-db-lesson
This repo is inspired by a Youtube course on Rust, you can check out the video if you would like to follow up each lesson with a video.