Rust Installation (MacOS)

Cheatsheet for rust installation for MacOS

// installing rust
$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh

// updating 
$ rustup update

// installing c++ compiler if not installed
$ xcode-select --install

// uninstalling rust
$ rustup self uninstall

// check rust version for installation
$ rustc --version