Mac installation Rust

Recently, amway Rust has been a lot of fun. If you want to have fun, go to the official website to see how to install the environment

One line of command and you’re done

Curl, proto '= HTTPS' - tlsv1.2 - sSf https://sh.rustup.rs | shCopy the code

Due to well-known reasons, if the network condition is not good, it may be stuck in this screen for 20 minutes without any response (you can try mobile phone hot spot, generally successful).

The next installation method is brew, which is almost always successful

brew install rust
Copy the code

Then I tried HelloWorld, and it worked fine. But there is a problem, this installation does not come with Rustup

Later found a way to brew installation, also with Rustup

Brew install rustup-init // Run rustup-init after the installation is completeCopy the code

And you’re done!