User Tools

Site Tools


rustup-init

rustup-init

rustup - rustup help

warning: it looks like you have an existing installation of Rust at:

warning: C:\ProgramData\chocolatey\bin

warning: rustup should not be installed alongside Rust. Please uninstall your existing Rust first.

warning: Otherwise you may have confusion unless you are careful with your PATH

warning: If you are sure that you want both rustup and your already installed Rust

warning: then please reply `y' or `yes' or set RUSTUP_INIT_SKIP_PATH_CHECK to yes

warning: or pass `-y' to ignore all ignorable checks.

error: cannot install while Rust is installed

Continue? (y/N)


Rust Visual C++ prerequisites

Rust requires the Microsoft C++ build tools for Visual Studio 2013 or later, but they don't seem to be installed.

The easiest way to acquire the build tools is by installing Microsoft Visual C++ Build Tools 2019 which provides just the Visual C++ build tools:

https://visualstudio.microsoft.com/visual-cpp-build-tools

Please ensure the Windows 10 SDK and the English language pack components are included when installing the Visual C++ Build Tools.

Alternately, you can install Visual Studio 2019, Visual Studio 2017, Visual Studio 2015, or Visual Studio 2013 and during install select the “C++ tools”:

 https://visualstudio.microsoft.com/downloads/

Install the C++ build tools before proceeding.

If you will be targeting the GNU ABI or otherwise know what you are doing then it is fine to continue installation without the build tools, but otherwise, install the C++ build tools before proceeding.

Continue? (y/N)


Welcome to Rust!

This will download and install the official compiler for the Rust programming language, and its package manager, Cargo.

Rustup metadata and toolchains will be installed into the Rustup home directory, located at:

 C:\Users\USERNAME\.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory located at:

 C:\Users\USERNAME\.cargo

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other Rust commands will be added to Cargo's bin directory, located at:

 C:\Users\USERNAME\.cargo\bin

This path will then be added to your PATH environment variable by modifying the HKEY_CURRENT_USER/Environment/PATH registry key.

You can uninstall at any time with rustup self uninstall and these changes will be reverted.

Current installation options:

  default host triple: x86_64-pc-windows-msvc
    default toolchain: stable (default)
              profile: default
 modify PATH variable: yes

1) Proceed with installation (default) 2) Customize installation 3) Cancel installation


1

info: profile set to 'default'

info: default host triple is x86_64-pc-windows-msvc

warning: Updating existing toolchain, profile choice will be ignored

info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'

info: default Rust toolchain set to 'stable-x86_64-pc-windows-msvc'

stable-x86_64-pc-windows-msvc unchanged - rustc 1.54.0 (a178d0322 2021-07-26)

Rust is installed now. Great!

To get started you may need to restart your current shell.

This would reload its PATH environment variable to include

Cargo's bin directory (%USERPROFILE%\.cargo\bin).

Press the Enter key to continue.


rustup-init.txt · Last modified: 2024/04/28 03:25 (external edit)