Skip to content

Instantly share code, notes, and snippets.

@brunopgalvao
Created June 13, 2023 17:16
Show Gist options
  • Save brunopgalvao/fab11249fe9ea275fe9a4c15cc34b5c1 to your computer and use it in GitHub Desktop.
Save brunopgalvao/fab11249fe9ea275fe9a4c15cc34b5c1 to your computer and use it in GitHub Desktop.
rust toolchain for trappist

Select default install

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
rustup install 1.68.0
rustup default 1.68.0

rustup toolchain install nightly-2023-01-01
rustup target add wasm32-unknown-unknown --toolchain nightly-2023-01-01
rustup override set nightly-2023-01-01
@brunopgalvao
Copy link
Author

rust-toolchain.toml

[toolchain]
channel = "nightly-2023-01-01"
components = [ "rustfmt" ]
targets = [ "wasm32-unknown-unknown" ]
profile = "minimal"

@brunopgalvao
Copy link
Author

$ rustup show          
Default host: aarch64-apple-darwin
rustup home:  /Users/bruno/.rustup

installed toolchains
--------------------

stable-aarch64-apple-darwin
nightly-2023-01-01-aarch64-apple-darwin
nightly-2023-01-30-aarch64-apple-darwin
nightly-aarch64-apple-darwin
1.68.0-aarch64-apple-darwin (default)

installed targets for active toolchain
--------------------------------------

aarch64-apple-darwin
wasm32-unknown-unknown

active toolchain
----------------

nightly-2023-01-01-aarch64-apple-darwin (overridden by '/Users/bruno/src/trappist/rust-toolchain.toml')
rustc 1.68.0-nightly (574b64a97 2022-12-31)

$ rustup +nightly show 
Default host: aarch64-apple-darwin
rustup home:  /Users/bruno/.rustup

installed toolchains
--------------------

stable-aarch64-apple-darwin
nightly-2023-01-01-aarch64-apple-darwin
nightly-2023-01-30-aarch64-apple-darwin
nightly-aarch64-apple-darwin
1.68.0-aarch64-apple-darwin (default)

active toolchain
----------------

nightly-aarch64-apple-darwin (overridden by +toolchain on the command line)
rustc 1.72.0-nightly (df77afbca 2023-06-12)

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