Rust
Dependencies
- Target
- I/O
- toml (https://crates.io/crates/toml)
- serde (https://crates.io/crates/serde)
Mirrors
Install Rust
Reference: https://forge.rust-lang.org/infra/other-installation-methods.html
Standalone Installers (Rustup)
- Check the system environment
- List Rust versions (
https://static.rust-lang.org/dist/channel-rust-stable.toml) - Download the installation package for the corresponding version.
(
https://static.rust-lang.org/rustup/dist/{TARGET_TRIPLE}/rustup-init{.exe?}) - Install to the designated location
- Check the installation status
Standalone Installers (No Rustup)
- Check the system environment
- List Rust versions (
https://static.rust-lang.org/dist/channel-rust-stable.toml) - Download the installation package for the corresponding version.
(
https://static.rust-lang.org/rustup/dist/rustc-{VERSION}-{TARGET_TRIPLE}.tar.xz) - Unzip the installation package
- Install to the designated location
- Check the installation status
Source Code (No Rustup)
- Choose Host Rust versions
- Check the system environment
- List Rust Source versions (
https://static.rust-lang.org/dist/channel-rust-stable.toml) - Download the source code (
https://static.rust-lang.org/dist/rustc-{VERSION}-src.tar.xz) - Unzip the source code
- Compile the source code
- Install to the designated location (or system link)
- Check the installation status
Uninstall Rust
Rustup
- Run
rustup self uninstall - Check the uninstallation status
Source Code
- Remove the installation files (or system link)
- Clean the source code directory (optional)
- Check the uninstallation status
Update Rust
Rustup
- Run
rustup update
Source Code
- Choose Host Rust versions
- Check the system environment
- List Rust Source versions (
https://static.rust-lang.org/dist/channel-rust-stable.toml) - Download the source code (
https://static.rust-lang.org/dist/rustc-{VERSION}-src.tar.xz) - Unzip the source code (Overwrite)
- Compile the source code
- Install to the designated location (or system link)
- Check the installation status