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

  1. Open your terminal.

  2. Paste the following command and press Enter:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  1. Select option 1 to proceed with the installation:

Step 2: Verify Installation

  1. Run the following command to verify the version of the Rust compiler (rustc) that is installed on your system:

rustc --version

Once you run the command, you should see the installed Rust version as follows:

  1. To see the version of cargo installed, run this command:

cargo --version

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:

rustup default stable

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