What is the command line tool used to install Rust?
rustup
What is the command to update rustup?
rustup update
Check the current installed version of Rust.
rustc –version
Open the offline rust documentation from the command line.
rustup doc
What is the command to automatically format Rust code?
rustfmt
The ‘main’ function is special. Why?
It is always the first code that runs in every executable Rust program.
Automatically fix rust compiler errors.
rustfix using cargo fix
The Clippy tool is a collection of lints to analyze your code so you can catch common mistakes and improve your Rust code.
How do you install Clippy?
rustup component add clippy
then enter: cargo clippy