This guide will help you install Rust and set up a Substrate development environment on Apple macOS computers with either Intel or Apple M1 processors.
Ensure your computer meets the following requirements:
Operating System: macOS 10.7 Lion or later
Processor: At least 2GHz (3GHz recommended)
Memory: At least 8 GB RAM (16 GB recommended)
Storage: At least 10 GB available space
Internet: Broadband connection
If you don't have Homebrew installed, you should install it to manage packages on macOS.
Open the Terminal application.
Download and install Homebrew by running:
Verify Homebrew installation:
Update Homebrew:
Install required packages:
Download and run the rustup
installation script:
Follow the prompts for default installation.
Update your current shell to include Cargo:
Verify Rust installation:
Configure Rust to use the stable version and update:
Add the nightly toolchain and WebAssembly (wasm) targets:
Verify the configuration:
Now that Rust is installed and configured, you can compile a Substrate node.
Clone the Substrate node template repository:
Compile the node template:
The compilation process may take several minutes.
Your development environment is now set up for Substrate development.
Your local computer is ready for Substrate development activity. For further resources and guides, visit the Substrate Developer Hub.