![]() Open Terminal, which is in the Utilities folder of your Applications folder.Plug in the USB flash drive or other volume that you're using for the bootable installer.This can be modified with the CARGO_HOME environment variable. This can be modified with the RUSTUP_HOME environment variable. Rustup metadata and toolchains will be installed into the Rustup Programming language, and its package manager, Cargo. ![]() This will download and install the official compiler for the Rust Here are the XDG variables I've set in my ~/.zshenv. I like to keep my $HOME directory clean, so I try to conform to the XDG Base Directory Specification as much as possible. Setting up your environment variables for rustup The last option is to install the rustup-init formula instead, which I consider to be the best option, however, some extra manual work is needed and I will walk you through it. This is better, however, you're essentially installing a single toolchain for your given native hardware, as it looks like rustup is not part of this formula, so you cannot easily cross-compile by adding other toolchains. You'd also need to read through the shell script to understand what it's exactly doing.Īnother option is to install the rust formula with brew. My concern with this method is that it's not immediately clear how to do a clean uninstall in the future. If you're not familiar, there are mainly 3 common ways that people install Rust on Mac:Ī lot of people simply run the following command as suggested by the Rust website: curl -proto '=https' -tlsv1.2 -sSf | sh ![]() When I first wanted to get started with Rust, I was a bit confused about the suggested way of installation for its toolchain, at least on a Mac device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |