$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
To uninstall,
$ rustup self uninstall
$ cargo new rust-demo
or
$ mkdir rust-demo
$ cd rust-demo
$ cargo init
https://github.com/rust-lang/rustfmt
$ rustup component add rustfmt