Getting Started with Rust

less than 1 minute read

1.) Install Rust from

  • If on Windows, you’ll need to install the Visual C++ 2017 Build Tools from here:

2.) Install some common and useful tools:

cargo install racer
cargo install rustsym
cargo install rustfmt
cargo install ripgrep

3.) Add the Rust documentation

rustup component add rust-doc

4.) Install the Language Server (for IDE-like features in editors):

rustup self update
rustup update
rustup component add rls-preview
rustup component add rust-analysis
rustup component add rust-src

5.) Install Visual Studio Code from:

6.) Install the Rust vscode extension from the vscode marketplace, or type:

ext install rust

in the vscode command palette, which can be brought up with ctrl+shift+p.

How to install extensions in vscode:

7.) Add the following line to your vscode user preferences (File->Preferences->Settings or use the shortcut Ctrl+Comma):

"": "stable"

8.) Create a new rust project with cargo and open it with vscode:

cargo new --bin my-project-name
code my-project-name

9.) Begin learning Rust!

The official Rust Book can be found here:

And an up to date repository of various Rust learning resources can be found here:

Leave a Comment