Skip to content

Instantly share code, notes, and snippets.

@uupaa uupaa/rust.md
Last active Dec 6, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.