The first course of action when learning any programming language is installing the runtime and setting up an editor for programming practice.
Since this is the first day of learning Rust, i will briefly introduce you to the blogging model i am going to follow for the rest of the learning experience. I will be organizing the blog pages by the day . Each and every day, there will be at least three sections namely, but not limited to, Concepts learnt, Examples in the light of concepts, Any mistakes made and lessons learnt etc…
All my learning is on a Mac book Pro with OS Mojave 10.14.5. I use home brew as my package manager. Please make sure you have home brew installed on your computer. I am not going to show how to install Rust and other tools that i am going to use during learning on other operating systems as there are plenty of resources out there to walk you through , how ever i am documenting installation and Editor setup on MacOs for my reference. This blog is more about learning programming than, walking one through setup process.
Installation :
Before installation, make sure you have home brew installed on your computer.
Use the following command to check the brew installation:
If home brew is not installed on your computer , you will not see the version when running the following command :
brew –version
If Homebrew is not installed , use the following command to install Homebrew and HomeBrew cask . Before installing HomeBrew run the XcodeInstall command to check the installation and License acceptance using the following command
xcode-select –install
Install Homebrew and Homebrew cask
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
Install Rust using the following commands :
brew install rustup
Install rust compiler and package manager Cargo using the following command
rustup-init
Select option 1 on command prompt and continue installation. Once the command successfully installs you can check installation by running the following command
rustc –version

Alternate installation :
If Hombrew is not your thing for some reason that i can not fathom, you can directly install Rust compiler using the following command from Rust documentation
curl https://sh.rustup.rs -sSf | sh
Once the installation is done, add $HOME/.cargo/env to your PATH. Would recommend adding this to ~/.bash_profile
Setting Up Editor :
My favorite code editor for Rust programming is VS Code . Go ahead, download vs code and install it on your computer.
Install the following plugins once the VS Code installation is done :
- Rust
- Better TOML
- CodeLLDB (Used for debugging)
Restart VS Code and Voila you are ready for programming in Rust .
I am going to call it a day , as its already 10 Past 11 PM where i live. Tomorrow , i will start talking about the basic programming concepts in Rust, setting up Debugging configuration in VS Code and gotchas .