Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 1. Rust Toolset


1.1. About Rust Toolset

Rust Toolset is a Red Hat offering for developers on the Red Hat Enterprise Linux platform, available as a Technology Preview. It provides the Rust programming language compiler rustc, the cargo build tool and dependency manager, the cargo-vendor plugin, the rustfmt tool and required libraries.

Rust Toolset is distributed as a part of Red Hat Developer Tools for Red Hat Enterprise Linux 7.

Important

Rust Toolset is available as a Technology Preview. See the Technology Preview Features Support Scope for more details.

Libraries in Rust Toolset provide no ABI compatibility with past or future releases.

Customers deploying Rust Toolset are encouraged to provide feedback to Red Hat.

The following components are available as a part of Rust Toolset:

Expand
Table 1.1. Rust Toolset Components
PackageVersionDescription

rust

1.26.2

A Rust compiler front-end for LLVM.

cargo

1.26.0

A build system and dependency manager for Rust.

cargo-vendor

0.1.15

A cargo subcommand to vendor crates.io dependencies.

rustfmt

0.4.2

A tool for automatic formatting of Rust code.

1.2. Compatibility

Rust Toolset is available for Red Hat Enterprise Linux versions 7.3 and 7.4 on the following architectures:

  • The 64-bit Intel and AMD architectures
  • The 64-bit ARM architecture
  • The IBM Power Systems architecture
  • The little-endian variant of IBM Power Systems architecture
  • The IBM Z Systems architecture

1.3. Getting Access to Rust Toolset

Rust Toolset is an offering that is distributed as a part of the Red Hat Developer Tools content set, which is available to customers with deployments of Red Hat Enterprise Linux 7. In order to install Rust Toolset, enable the Red Hat Developer Tools and Red Hat Software Collections repositories by using the Red Hat Subscription Management and add the Red Hat Developer Tools key to your system.

  1. Enable the rhel-7-variant-devtools-rpms repository:

    # subscription-manager repos --enable rhel-7-variant-devtools-rpms
    Copy to Clipboard Toggle word wrap

    Replace variant with the Red Hat Enterprise Linux system variant (server or workstation).

    Note

    We recommend developers to use Red Hat Enterprise Linux Server for access to the widest range of development tools.

  2. Enable the rhel-variant-rhscl-7-rpms repository:

    # subscription-manager repos --enable rhel-variant-rhscl-7-rpms
    Copy to Clipboard Toggle word wrap

    Replace variant with the Red Hat Enterprise Linux system variant (server or workstation).

  3. Add the Red Hat Developer Tools key to your system:

    # cd /etc/pki/rpm-gpg
    # wget -O RPM-GPG-KEY-redhat-devel https://www.redhat.com/security/data/a5787476.txt
    # rpm --import RPM-GPG-KEY-redhat-devel
    Copy to Clipboard Toggle word wrap

Once the subscription is attached to the system and repositories enabled, you can install Red Hat Rust Toolset as described in Section 1.4, “Installing Rust Toolset”.

Additional Resources

1.4. Installing Rust Toolset

Rust Toolset is distributed as a collection of RPM packages that can be installed, updated, uninstalled, and inspected by using the standard package management tools that are included in Red Hat Enterprise Linux. Note that a valid subscription that provides access to the Red Hat Developer Tools content set is required in order to install Rust Toolset on your system. For detailed instructions on how to associate your system with an appropriate subscription and get access to Rust Toolset, see Section 1.3, “Getting Access to Rust Toolset”.

Important

Before installing Rust Toolset, install all available Red Hat Enterprise Linux updates.

To install all components that are included in Rust Toolset, install the rust-toolset-7 package:

# yum install rust-toolset-7
Copy to Clipboard Toggle word wrap

This installs all development and debugging tools, and other dependent packages to the system. Notably, Rust Toolset has a dependency on Clang and LLVM Toolset.

1.5. Additional Resources

A detailed description of the Rust programming language and all its features is beyond the scope of this book. For more information, see the resources listed below.

Installed Documentation

  • The package rust-toolset-7-rust-doc installs the The Rust Programming Language book and API documentation in HTML format to /opt/rh/rust-toolset-7/root/usr/share/doc/rust/html/index.html.

Online Documentation

Retour au début
Red Hat logoGithubredditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance. Découvrez nos récentes mises à jour.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez le Blog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

Theme

© 2026 Red Hat