Installing Rust & Cargo
This section walks you through installing Rust and the Cargo package manager via Rustup.
To begin developing with the Concordium blockchain, you'll need to install Rust and Cargo via Rustup. Rust is the core language for Concordium development, offering safety and performance, while Cargo helps manage project dependencies. Follow the steps outlined below:
Step 1: Install Rust and Cargo
Open your terminal.
Paste the following command and press Enter:
Select option 1 to proceed with the installation:
Step 2: Verify Installation
Run the following command to verify the version of the Rust compiler (rustc) that is installed on your system:
Once you run the command, you should see the installed Rust version as follows:
To see the version of cargo installed, run this command:
Step 3: Configure Rust Toolchain
To set the default Rust version and ensure that you're using a stable release of Rust for your project, run this command:
When you run the command, you should see the following in your terminal:
Congratulations! You've successfully installed Rust and Cargo for Concordium blockchain development.
Last updated