rustup install code example
Example 1: rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Example 2: brew mac install cargo with toolchain
rustc --version
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustc --version