Total Pageviews

Tuesday 5 November 2024

安装rust的windows版

下载https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe (from https://www.rust-lang.org/tools/install)

安装时,显示:

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\12799\.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory is located at:

  C:\Users\12799\.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\12799\.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.

...

stable-x86_64-pc-windows-msvc installed - rustc 1.82.0 (f6e511eec 2024-10-15)

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.

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


https://learn.microsoft.com/en-us/cpp/build/walkthrough-compiling-a-native-cpp-program-on-the-command-line?view=msvc-170&redirectedfrom=MSDN



No comments:

Post a Comment