Skip to main content

Prerequisites

Before you start building a web server service with Axum, you need to have Rust installed on your system.

It's advised to use the latest stable version of Rust for this workshop.

Installation guide​

macOS, Linux, or another Unix-like OS.​

  1. Open a terminal
  2. Run the following command:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  1. Follow the prompts to complete the installation.
  2. Restart your terminal after installation.

Windows​

  • Website: https://www.rust-lang.org/
  • Steps:
    1. Go to the Rust website.
    2. Click the "Get Started" button.
    3. Click the "Other Installation Methods" hyperlink
    4. Click on rustup-init.exe to get the installer.
    5. Run the installer and follow the prompts.
      • When prompted, choose "Proceed with installation".
    6. Restart your computer after installation.

Verify Installation​

After installing the prerequisites, verify your setup by running the following commands in your terminal:

  rustc --version
cargo --version

Troubleshooting​

1. Rust/Cargo Errors​