From 5119a6249010cb68cb6cc10af5bfe3828724a83c Mon Sep 17 00:00:00 2001 From: Remo Senekowitsch Date: Sun, 9 Mar 2025 11:10:21 +0100 Subject: [PATCH] Replace lost videos with plain text --- posts/rustup.md | 88 ++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 68 insertions(+), 20 deletions(-) diff --git a/posts/rustup.md b/posts/rustup.md index d7ed6815f..6aaf417f7 100644 --- a/posts/rustup.md +++ b/posts/rustup.md @@ -86,25 +86,55 @@ Let's start with something simple: installing multiple Rust toolchains. In this example I create a new library, 'hello', then test it using rustc 1.8, then use rustup to install and test that same crate on the 1.9 beta. -
- -
- - That's an easy way to verify your code works on the next Rust release. That's good Rust citizenship! @@ -112,14 +142,32 @@ good Rust citizenship! We can use `rustup show` to show us the installed toolchains, and `rustup update` to keep them up to date with Rust's releases. -
- -
+```console +$ rustup show +Default host: x86_64-unknown-linux-gnu +rustup home: /home/user/.rustup + +installed toolchains +-------------------- + +stable-x86_64-unknown-linux-gnu (default) +beta-x86_64-unknown-linux-gnu + +active toolchain +---------------- + +stable-x86_64-unknown-linux-gnu (default) +rustc 1.8.0 (db2939409 2016-04-11) + +$ rustup update +info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu' +info: syncing channel updates for 'beta-x86_64-unknown-linux-gnu' + + stable-x86_64-unknown-linux-gnu unchanged - rustc 1.8.0 (db2939409 2016-04-11) + beta-x86_64-unknown-linux-gnu unchanged - rustc 1.9.0-beta (e4e8b6668 2016-04-11) + +info: cleaning up downloads & tmp directories +``` Finally, rustup can also change the default toolchain with `rustup default`: