Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 1. Rust Toolset
Rust Toolset is a Red Hat offering for developers on Red Hat Enterprise Linux (RHEL). It provides the rustc compiler for the Rust programming language, the Rust package manager Cargo, the rustfmt formatting tool, and required libraries.
Rust Toolset is available as a module for RHEL 8 and as packages for RHEL 9 and 10.
1.1. Rust Toolset components Link kopierenLink in die Zwischenablage kopiert!
Rust Toolset includes the Rust compiler, Cargo build system and dependency manager, and the rustfmt formatting tool (version 1.88.0).
| Name | Version | Description |
|---|---|---|
|
| 1.88.0 | The Rust compiler front-end for LLVM. |
|
| 1.88.0 | A build system and dependency manager for Rust. |
|
| 1.88.0 | A tool for automatic formatting of Rust code. |
1.2. Rust Toolset compatibility Link kopierenLink in die Zwischenablage kopiert!
Rust Toolset is available for Red Hat Enterprise Linux on AMD and Intel 64-bit (x86_64), 64-bit ARM (aarch64), IBM Power Systems, Little Endian (ppc64le), and 64-bit IBM Z (s390x) architectures.
1.3. Installing Rust Toolset Link kopierenLink in die Zwischenablage kopiert!
Install Rust Toolset, including all development and debugging tools and dependent packages, by enabling the rust-toolset module on RHEL 8 or installing the rust-toolset package on RHEL 9 and 10. Rust Toolset depends on LLVM Toolset.
Prerequisites
- All available Red Hat Enterprise Linux updates are installed.
Procedure
Install Rust Toolset:
On RHEL 8, enter:
yum module install rust-toolset
# yum module install rust-toolsetCopy to Clipboard Copied! Toggle word wrap Toggle overflow On RHEL 9 and 10, enter:
dnf install rust-toolset
# dnf install rust-toolsetCopy to Clipboard Copied! Toggle word wrap Toggle overflow
1.4. Installing Rust documentation Link kopierenLink in die Zwischenablage kopiert!
Install the rust-doc package to have The Rust Programming Language book available locally on your system.
Procedure
Install the
rust-docpackage:On RHEL 8, enter:
yum install rust-doc
# yum install rust-docCopy to Clipboard Copied! Toggle word wrap Toggle overflow On RHEL 9 and 10, enter:
dnf install rust-doc
# dnf install rust-docCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Use a browser that is installed on the same host to display the documentation:
-
The Rust Programming Language book:
/usr/share/doc/rust/html/index.html -
The API documentation for all Rust code packages:
/usr/share/doc/rust/html/std/index.html
-
The Rust Programming Language book:
1.5. Installing Cargo documentation Link kopierenLink in die Zwischenablage kopiert!
The Cargo, Rust’s Package Manager book is available as installable documentation for Cargo.
Procedure
Install the
cargo-docpackage:On RHEL 8, enter:
yum install cargo-doc
# yum install cargo-docCopy to Clipboard Copied! Toggle word wrap Toggle overflow On RHEL 9 and 10, enter:
dnf install cargo-doc
# dnf install cargo-docCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
-
Open
/usr/share/doc/cargo/html/index.htmlin a browser that is installed on the same host.