最終更新日: 2020-07-04 土 20:53
ホーム | 文書トップ | 目次

Rust

Table of Contents

公式

インストール

Windows10 64bit

事前準備

VisualStudioをインストールする。

rust-init.exe(そのまま実行した場合)

  • rust-init.exe (64bit) を実行する

下記のようにメッセージが出る。

Welcome to Rust!

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

It will add the cargo, rustc, rustup and other commands to
Cargo's bin directory, located at:

  C:\Users\wurly\.cargo\bin

This can be modified with the CARGO_HOME environment variable.

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

  C:\Users\wurly\.rustup

This can be modified with the RUSTUP_HOME environment variable.

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
               profile: default
  modify PATH variable: yes

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

環境変数の設定

お好みで。

システム環境変数に下記を追加

CARGO_HOME=C:\usr\cargo

ユーザ環境変数に下記を追加

RUSTUP_HOME=D:\home\wurly\.rustup

rust-init.exe(環境変数を設定して、再度実行)

Welcome to Rust!

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

It will add the cargo, rustc, rustup and other commands to
Cargo's bin directory, located at:

  C:\usr\cargo\bin

This can be modified with the CARGO_HOME environment variable.

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

  D:\home\wurly\.rustup

This can be modified with the RUSTUP_HOME environment variable.

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
               profile: default
  modify PATH variable: yes

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

インストール

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
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: latest update on 2020-06-18, rust version 1.44.1 (c7087fe00 2020-06-17)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
 12.2 MiB /  12.2 MiB (100 %)   7.5 MiB/s in  1s ETA:  0s
info: downloading component 'rust-std'
 14.9 MiB /  14.9 MiB (100 %)   8.0 MiB/s in  1s ETA:  0s
info: downloading component 'rustc'
 36.4 MiB /  36.4 MiB (100 %)   8.3 MiB/s in  4s ETA:  0s
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
 12.2 MiB /  12.2 MiB (100 %)   4.3 MiB/s in  2s ETA:  0s
info: installing component 'rust-std'
info: installing component 'rustc'
 36.4 MiB /  36.4 MiB (100 %)  11.4 MiB/s in  3s ETA:  0s
info: installing component 'rustfmt'
info: default toolchain set to 'stable'

  stable installed - rustc 1.44.1 (c7087fe00 2020-06-17)


Rust is installed now. Great!

To get started you need Cargo's bin directory (C:\usr\cargo\bin) in your PATH
environment variable. Future applications will automatically have the
correct environment, but you may need to restart your current shell.

Press the Enter key to continue.
ホーム | 文書トップ | 目次
Created by Emacs 27.1 (Org mode 9.3)