Rust Installation

Install Rust

Key Steps

On WSL / Unix:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • Check whether you have Rust installed correctly
rustc --version
cargo --version
  • Open the documentation, if needed
rustup doc
  • Create a new project
cargo new hello_world
cd hello_world
code .      # open VS Code and edit
  • Build / run the code.
cargo check
cargo build
cargo run