Rust install が簡単になった

Rust を Sierra にインストールしてみました. ちょっと見ない内に rustup というツールができてたみたいです.

homebrew とかでもインストールできるみたいですが,公式のおすすめ curl …|sh でインストールしました.

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

info: downloading installer

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:

  /Users/nom/.cargo/bin

This path will then be added to your PATH environment variable by modifying the
profile files located at:

  /Users/nom/.profile
  /Users/nom/.zprofile

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

Current installation options:

   default host triple: x86_64-apple-darwin
     default toolchain: stable
  modify PATH variable: yes

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

...

Current installation options:

   default host triple: x86_64-apple-darwin
     default toolchain: stable
  modify PATH variable: no

とやって, .zshenv

source $HOME/.cargo/env

を足しました.

参考: プログラミング言語 Rust