haiju's 開発メモ

開発に必要な情報を自分用にメモ

rustupを使ってRust開発環境を構築

以前、VAIO Duo11でmanjaroをWindow8のVMで運用している時は、

multirustで環境構築をしたという記事を書いたけど、その後、

rustupを使ってインストールするという情報が出回ったので

connpassにはmultirustを使ってインストールする情報が

書いてあったけど、rustupで取り急ぎインストールしてみた。

細かいカスタマイズについては帰宅してから。

[手順]

1. ターミナルに以下を入力し実行。

 % curl https://sh.rustup.rs -sSf | sh

2. インストールオプションとしてdefaultの1) を選んでおく。

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

WARNING: This is beta software.

Current installation options:

default host triple: x86_64-unknown-linux-gnu
default toolchain: stable
modify PATH variable: yes

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

 3. 程なくしてstableの最新の1.12.0が入る。

info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'

info: downloading component 'rustc'
45.4 MiB / 45.4 MiB (100 %) 5.0 MiB/s ETA: 0 s
info: downloading component 'rust-std'
58.2 MiB / 58.2 MiB (100 %) 5.7 MiB/s ETA: 0 s
info: downloading component 'rust-docs'
7.4 MiB / 7.4 MiB (100 %) 5.1 MiB/s ETA: 0 s
info: downloading component 'cargo'
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'rust-docs'
info: installing component 'cargo'
info: default toolchain set to 'stable'

stable installed - rustc 1.12.0 (3191fbae9 2016-09-23)


Rust is installed now. Great!

To get started you need Cargo's bin directory in your PATH environment
variable. Next time you log in this will be done automatically.

To configure your current shell run source $HOME/.cargo/env.

 

2月にmultirustでインストールした時より拍子抜けするくらい一瞬

だったような気が。

よそ見してたからかなぁ?(ΦωΦ)

勉強会が13時以降かと思っていたら12時40分からだったので

大急ぎで準備しなくちゃ。

ってわけで。

[参考サイト]

hatappo.hatenadiary.jp

devml.blogspot.jp

tydk27.hatenadiary.com

www.infoq.com

mizunashi_mana/TIL/programming/rust-intro - 電気通信大学MMA

d.sunnyone.org

tydk27.hatenadiary.com

qiita.com

qiita.com