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) y
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\cml\.rustup
This can be modified with the RUSTUP_HOME environment variable.
The Cargo home directory located at:
C:\Users\cml\.cargo
This can be modified with the CARGO_HOME environment variable.
The cargo, rustc, rustup
and
other commands will be added to
Cargo's
bin
directory, located at:
C:\Users\cml\.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
>
info: profile
set
to
'default'
info: default host triple
is
x86_64
-
pc
-
windows
-
msvc
info: syncing channel updates
for
'stable-x86_64-pc-windows-msvc'
info: latest update on
2022
-
01
-
20
, rust version
1.58
.
1
(db9d1b20b
2022
-
01
-
20
)
info: downloading component
'cargo'
3.8
MiB
/
3.8
MiB (
100
%
)
1.7
MiB
/
s
in
2s
ETA:
0s
info: downloading component
'clippy'
1.6
MiB
/
1.6
MiB (
100
%
)
1.5
MiB
/
s
in
1s
ETA:
0s
info: downloading component
'rust-docs'
18.8
MiB
/
18.8
MiB (
100
%
)
3.3
MiB
/
s
in
5s
ETA:
0s
info: downloading component
'rust-std'
22.9
MiB
/
22.9
MiB (
100
%
)
3.2
MiB
/
s
in
7s
ETA:
0s
info: downloading component
'rustc'
65.2
MiB
/
65.2
MiB (
100
%
)
493.2
KiB
/
s
in
1m
14s
ETA:
0s
info: downloading component
'rustfmt'
2.2
MiB
/
2.2
MiB (
100
%
)
631.2
KiB
/
s
in
3s
ETA:
0s
info: installing component
'cargo'
info: installing component
'clippy'
info: installing component
'rust-docs'
18.8
MiB
/
18.8
MiB (
100
%
)
1.9
MiB
/
s
in
6s
ETA:
0s
info: installing component
'rust-std'
22.9
MiB
/
22.9
MiB (
100
%
)
10.5
MiB
/
s
in
2s
ETA:
0s
info: installing component
'rustc'
65.2
MiB
/
65.2
MiB (
100
%
)
12.2
MiB
/
s
in
5s
ETA:
0s
info: installing component
'rustfmt'
info: default toolchain
set
to
'stable-x86_64-pc-windows-msvc'
stable
-
x86_64
-
pc
-
windows
-
msvc installed
-
rustc
1.58
.
1
(db9d1b20b
2022
-
01
-
20
)
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
.