Skip to content

Instantly share code, notes, and snippets.

@uupaa
Last active December 6, 2017 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uupaa/d8b2a0fcd8eca443f415b24fe14947a7 to your computer and use it in GitHub Desktop.
Save uupaa/d8b2a0fcd8eca443f415b24fe14947a7 to your computer and use it in GitHub Desktop.
rust memo

Rust

Install

stable build:

curl https://sh.rustup.rs -sSf | sh
source ~/.zprofile    # in zsh
rustc --version

> rustc 1.22.1 (05e2e1c41 2017-11-22)

cargo --version

> cargo 0.23.0 (61fa02415 2017-11-22)

nightly build:

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

> 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

2

> I'm going to ask you the value of each these installation options.
> You may simply press the Enter key to leave unchanged.
> 
> Default host triple?

[ENTER]

> 
> Default toolchain? (stable/beta/nightly/none)

nightly

> Modify PATH variable? (y/n)

y

> Current installation options:
> 
>    default host triple: x86_64-apple-darwin
>      default toolchain: nightly
>   modify PATH variable: yes
> 
> 1) Proceed with installation (default)
> 2) Customize installation
> 3) Cancel installation

1

source ~/.zprofile    # in zsh
rustc --version

> rustc 1.24.0-nightly (cfba0d446 2017-12-05)

cargo --version

> cargo 0.24.0-nightly (5bb478a51 2017-11-29)

Uninstall

rustup self uninstall

wasm

https://www.hellorust.com/setup/wasm-target/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment