install
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shinfo: downloading installerWelcome to Rust!This will download and install the official compiler for the Rustprogramming language, and its package manager, Cargo.It will add the cargo, rustc, rustup and other commands toCargo's bin directory, located at: /Users/wyb/.cargo/binThis can be modified with the CARGO_HOME environment variable.Rustup metadata and toolchains will be installed into the Rustuphome directory, located at: /Users/wyb/.rustupThis can be modified with the RUSTUP_HOME environment variable.This path will then be added to your PATH environment variable bymodifying the profile files located at: /Users/wyb/.profile/Users/wyb/.bash_profileYou can uninstall at any time with rustup self uninstall andthese changes will be reverted.Current installation options: default host triple: x86_64-apple-darwin default toolchain: stable profile: default modify PATH variable: yes1) Proceed with installation (default)2) Customize installation3) Cancel installation>info: profile set to 'default'info: default host triple is x86_64-apple-darwininfo: syncing channel updates for 'stable-x86_64-apple-darwin'463.3 KiB / 463.3 KiB (100 %) 383.0 KiB/s in 1s ETA: 0sinfo: latest update on 2020-03-12, rust version 1.42.0 (b8cedc004 2020-03-09)info: downloading component 'cargo' 3.7 MiB / 3.7 MiB (100 %) 1.7 MiB/s in 2s ETA: 0sinfo: downloading component 'clippy'info: downloading component 'rust-docs' 12.1 MiB / 12.1 MiB (100 %) 3.4 MiB/s in 4s ETA: 0sinfo: downloading component 'rust-std' 16.1 MiB / 16.1 MiB (100 %) 2.8 MiB/s in 7s ETA: 0sinfo: downloading component 'rustc' 54.5 MiB / 54.5 MiB (100 %) 3.5 MiB/s in 19s ETA: 0sinfo: downloading component 'rustfmt'info: installing component 'cargo'info: installing component 'clippy'info: installing component 'rust-docs' 12.1 MiB / 12.1 MiB (100 %) 4.3 MiB/s in 3s ETA: 0sinfo: installing component 'rust-std'info: installing component 'rustc' 54.5 MiB / 54.5 MiB (100 %) 11.7 MiB/s in 4s ETA: 0sinfo: installing component 'rustfmt'info: default toolchain set to 'stable' stable installed - (timeout reading rustc version)Rust is installed now. Great!To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATHenvironment variable. Next time you log in this will be doneautomatically.To configure your current shell run source $HOME/.cargo/env[wolf@LonelyHost: wpcharts]$
version
$ rustc --version