備忘録

調べ物の備忘録など何か書き残し。

rustインストール

公式ページの手順に従う

  1. 公式ページにアクセス https://www.rust-lang.org/ja/tools/install

  2. rustup-init.exe(64bit)をダウンロード

  3. ダウンロードしたrustup-init.exeを実行

  4. コマンドプロンプトの表示から、インストール方法を選択。(Proceed with installationを選択)

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 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
  1. cargo ( rustのパッケージマネージャ )のパスが通っていることを確認する。
>cargo --version
cargo 1.52.0 (69767412a 2021-04-21)