How to Install Rust Language on Mac (macOS)

The easiest way to install Rust Language on your Mac is by using home-brew (brew) package manager.


Steps to install Rust on Mac

  • Step 1: Go to Spotlight Search and open Terminal App.
  • Step 2: Type to command brew install rust
    % brew install rust
    
    ...
    ==> Installing rust
    ==> Pouring rust--1.70.0.arm64_ventura.bottle.tar.gz
    ...
    ==> Summary
    🍺  /opt/homebrew/Cellar/rust/1.70.0: 36,824 files, 882.1MB
    ==> Running `brew cleanup rust`...
    ==> Caveats
    ==> rust
    zsh completions have been installed to:
      /opt/homebrew/share/zsh/site-functions

    If you get an error "Command not found: Brew" - follow this

  • Step 3: That it! You have rust installed. But just to verify the installation, let's check out the version command.
    % rustc --version
    
    rustc 1.70.0 (90c541806 2023-05-31) (built from a source tarball)
  • Installing Rust on Mac - macOS using Brew

    Refences:
    1. https://formulae.brew.sh/formula/rust
    2. https://www.rust-lang.org
    3. https://code2care.org/q/fix-brew-command-not-found-mac-terminal-linux-error

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!