Installing Rust:

Rust provides a tool called rustup to install and maintain different versions of rust as global or per project basis on your machine. You would need to install the rustup from https://rustup.rs . Please copy and follow the direction given there.

Installing rust Go to https://rustup.rs/ and run the command provided there in your termnial.

Issue you might face on Mac:

 cargo run
   Compiling play_ground v0.1.0 (/Users/sandeep/projects/Rust/rocket/learnRocket/play_ground)
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/Users/sandeep/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/sandeep/projects/Rust/rocket/learnRocket/play_ground/target/debug/deps/play_ground-b64a2e23d41a33fd.1fdelo0r13xxyfzo.rcgu.o" "/Users/sandeep/projects/Rust/rocket/learnRocket/play_ground/target/debug/deps/play_ground-b64a2e23d41a33fd.3swfqakrw58ojlwl.rcgu.o" "/Users/sandeep/projects/Rust/rocket/learnRocket/play_ground/target/debug/deps/pla

On mac has to install, please check here

Xcode-select --intsall

Few tools of rust Rustup : install and maintain different version of Rust in your machine. You can choose a different version for each project directory Rustc : Rust compiler. Cargo: package manager that is part of rust. Uses .toml file formats.