Installing rust
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
~/.rustup -- metadata and toolchains will be installed here
you chan change environment variable RUSTUP_HOME to modify that dir
~/.cargo -- change CARGO_HOME variable to modify this dir
~/.cargo/bin -- cargo, rustc, rustup will be added
after install you must restart terminal
$ . .bashrc
$ rustc --version
Uninstall rust
$ rustup self uninstall
learning rust by example
https://doc.rust-lang.org/rust-by-example/