Provision a Rust development environment

Set up Rust Toolset on Red Hat Enterprise Linux to compile, run, and maintain Rust applications by using a Red Hat-supported toolchain in your development environment.

Install Rust Toolset

On Red Hat Enterprise Linux 8, enable the rust-toolset module to install Rust Toolset and dependent packages. On Red Hat Enterprise Linux 9 and 10, install the rust-toolset package instead. On Red Hat Enterprise Linux 10, Rust 1.92 requires LLVM Toolset 21.

Before you begin

  • All available Red Hat Enterprise Linux updates are installed.

Procedure

  1. Install Rust Toolset:
    • On RHEL 8, enter:
      # yum module install rust-toolset
    • On RHEL 9 and 10, enter:
      # dnf install rust-toolset
  2. Optional: Install local Rust and Cargo documentation packages:
    • On RHEL 8, enter:
      # yum install rust-doc cargo-doc
    • On RHEL 9 and 10, enter:
      # dnf install rust-doc cargo-doc