From 20d6c8dc9605bd321c396b04e40f53fd34912219 Mon Sep 17 00:00:00 2001 From: Aditya Bhonsle <51963138+bhonsleaditya1@users.noreply.github.com> Date: Sat, 29 Nov 2025 09:09:53 +0530 Subject: [PATCH] Update ch01-01-installation.md | winget for Windows winget installation for rustup --- src/ch01-01-installation.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ch01-01-installation.md b/src/ch01-01-installation.md index 39d8371a6c..7ee845f657 100644 --- a/src/ch01-01-installation.md +++ b/src/ch01-01-installation.md @@ -68,6 +68,16 @@ ignore -->. The rest of this book uses commands that work in both _cmd.exe_ and PowerShell. If there are specific differences, we’ll explain which to use. +### Installing `rustup` on Windows using `winget` +Installing MSVC Pre-Requisite +``` +winget install Microsoft.VisualStudio.2022.Community --silent --override "--wait --quiet --add ProductLang En-us --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended" +``` +Installing `rustup` +``` +$ winget install -e --id Rustlang.Rustup +``` + ### Troubleshooting To check whether you have Rust installed correctly, open a shell and enter this