[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"article-install-rust-on-windows-and-verify-rustc-en":3,"article-related-install-rust-on-windows-and-verify-rustc-en":29,"series-tools-fb7100e3-ce80-48cc-a74e-2eafe65c9b54":74},{"id":4,"slug":5,"title":6,"content":7,"summary":8,"source":9,"source_url":10,"author":11,"image_url":12,"cover_image":12,"category":13,"language":14,"translated_content":11,"related_article_id":15,"keywords":16,"key_takeaways":22,"views":26,"created_at":27,"published_at":28,"topic_cluster_id":11},"fb7100e3-ce80-48cc-a74e-2eafe65c9b54","install-rust-on-windows-and-verify-rustc-en","Install Rust on Windows and verify rustc","\u003Cp data-speakable=\"summary\">A Windows 11 user hit a shell prompt error, then learned how to verify \u003Ca href=\"\u002Ftag\u002Frust\">Rust\u003C\u002Fa> correctly.\u003C\u002Fp>\u003Cp>This guide is for new Rust users on Windows 11 who installed Rust with rustup and then got stuck at the first terminal check. By the end, you will have Rust installed, Visual Studio Build Tools ready, and a clean way to confirm that \u003Ccode>rustc\u003C\u002Fcode> works in PowerShell or Command Prompt.\u003C\u002Fp>\u003Cp>You will also know why the \u003Ccode>$\u003C\u002Fcode> shown in Rust docs is only a prompt marker, not part of the command. That one detail is often the difference between a confusing error and a working setup.\u003C\u002Fp>\u003Ch2>Before you start\u003C\u002Fh2>\u003Cul>\u003Cli>Windows 11 Home or Windows 10 with administrator access\u003C\u002Fli>\u003Cli>A Microsoft account or browser access to download tools\u003C\u002Fli>\u003Cli>Rustup installer from the \u003Ca href=\"https:\u002F\u002Fwww.rust-lang.org\u002Ftools\u002Finstall\">Rust installation page\u003C\u002Fa> and the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Frust-lang\u002Frustup\">rustup GitHub repository\u003C\u002Fa>\u003C\u002Fli>\u003Cli>Visual Studio Build Tools 2022 or Visual Studio Community 2022 with the C++ build tools workload\u003C\u002Fli>\u003Cli>PowerShell 5.1+ or Windows Terminal\u003C\u002Fli>\u003Cli>Internet access for downloading rustup, the toolchain, and Windows build components\u003C\u002Fli>\u003C\u002Ful>\u003Ch2>Step 1: Download the Rust installer\u003C\u002Fh2>\u003Cp>Your goal is to get the official Rust installer from the Rust project, not a third-party package manager. On Windows, rustup is the standard path because it installs the compiler, package manager, and toolchain manager in one flow.\u003C\u002Fp>\n\u003Cfigure class=\"my-6\">\u003Cimg src=\"https:\u002F\u002Fxxdpdyhzhpamafnrdkyq.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fcovers\u002Finline-1787040168017-youp.png\" alt=\"Install Rust on Windows and verify rustc\" class=\"rounded-xl w-full\" loading=\"lazy\" \u002F>\u003C\u002Ffigure>\n\u003Cp>Open the \u003Ca href=\"https:\u002F\u002Fwww.rust-lang.org\u002Ftools\u002Finstall\">Rust installation page\u003C\u002Fa>, then choose the Windows installer and save it locally. If you want the source and release history, the project lives in the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Frust-lang\u002Frustup\">rustup GitHub repository\u003C\u002Fa>.\u003C\u002Fp>\u003Cp>When the download finishes, you should see an installer file such as \u003Ccode>rustup-init.exe\u003C\u002Fcode> in your Downloads folder.\u003C\u002Fp>\u003Ch2>Step 2: Install the MSVC toolchain\u003C\u002Fh2>\u003Cp>Your goal is to give Rust a linker and native Windows libraries so native builds can succeed. The forum thread that inspired this guide shows that installing Rust alone is not always enough on Windows.\u003C\u002Fp>\n\u003Cfigure class=\"my-6\">\u003Cimg src=\"https:\u002F\u002Fxxdpdyhzhpamafnrdkyq.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fcovers\u002Finline-1787040165827-jm2f.png\" alt=\"Install Rust on Windows and verify rustc\" class=\"rounded-xl w-full\" loading=\"lazy\" \u002F>\u003C\u002Ffigure>\n\u003Cp>Run the installer, accept the defaults, and let it install the \u003Ccode>default host triple\u003C\u002Fcode> for Windows. If the installer prompts you to install Visual Studio components, choose the C++ build tools or Visual Studio Build Tools 2022 workload.\u003C\u002Fp>\u003Cp>After the installer completes, you should see a success message that rustup and the default toolchain were installed.\u003C\u002Fp>\u003Ch2>Step 3: Open a fresh terminal\u003C\u002Fh2>\u003Cp>Your goal is to make sure the new Rust commands are available in your current shell session. Environment changes do not always appear in a window that was already open before installation.\u003C\u002Fp>\u003Cp>Close any existing PowerShell, Command Prompt, or Windows Terminal tabs. Open a new PowerShell window, or use the Start menu to launch a fresh terminal session.\u003C\u002Fp>\u003Cp>When the new terminal opens, you should see a normal prompt such as \u003Ccode>PS C:\\Users\\YourName&gt;\u003C\u002Fcode> or \u003Ccode>C:\\Users\\YourName&gt;\u003C\u002Fcode>.\u003C\u002Fp>\u003Ch2>Step 4: Run rustc without the prompt symbol\u003C\u002Fh2>\u003Cp>Your goal is to confirm that the compiler is installed and that you are typing only the command, not the documentation prompt. In Rust docs, the leading \u003Ccode>$\u003C\u002Fcode> means “this is a terminal line,” but you should not type it.\u003C\u002Fp>\u003Cp>Enter this command exactly as shown, with no dollar sign:\u003C\u002Fp>\u003Cpre>\u003Ccode>rustc --version\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>If Rust is installed correctly, you should see a version string such as \u003Ccode>rustc 1.xx.x (....)\u003C\u002Fcode>. If you typed \u003Ccode>$ rustc --version\u003C\u002Fcode>, PowerShell may complain that \u003Ccode>$\u003C\u002Fcode> is not a recognized command, which is the same mistake the forum post described.\u003C\u002Fp>\u003Ch2>Step 5: Check Cargo and the active toolchain\u003C\u002Fh2>\u003Cp>Your goal is to verify that the rest of the Rust toolchain is available, not just the compiler. Cargo handles builds, dependencies, and project creation, so it should work right away too.\u003C\u002Fp>\u003Cp>Run these commands in the same terminal:\u003C\u002Fp>\u003Cpre>\u003Ccode>cargo --version\nrustup show\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>You should see a Cargo version line and a rustup summary that lists your default toolchain and installed targets. If Cargo is missing, the PATH update likely did not apply yet or the installation did not finish cleanly.\u003C\u002Fp>\u003Ch2>Step 6: Build a starter project\u003C\u002Fh2>\u003Cp>Your goal is to prove that Rust can compile a real project on your machine. A hello-world crate is the fastest end-to-end test because it exercises Cargo, the compiler, and the linker together.\u003C\u002Fp>\u003Cp>Run:\u003C\u002Fp>\u003Cpre>\u003Ccode>cargo new hello-rust\ncd hello-rust\ncargo run\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>You should see Cargo create the project, compile it, and print \u003Ccode>Hello, world!\u003C\u002Fcode>. That confirms your Windows Rust setup is ready for the next tutorial or the Rust book.\u003C\u002Fp>\u003Ctable>\u003Cthead>\u003Ctr>\u003Cth>Metric\u003C\u002Fth>\u003Cth>Before\u002FBaseline\u003C\u002Fth>\u003Cth>After\u002FResult\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>First terminal check\u003C\u002Ftd>\u003Ctd>\u003Ccode>$ rustc --version\u003C\u002Fcode> caused a PowerShell error\u003C\u002Ftd>\u003Ctd>\u003Ccode>rustc --version\u003C\u002Fcode> returned the compiler version\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Build readiness\u003C\u002Ftd>\u003Ctd>Rust installed without Windows C++ tools\u003C\u002Ftd>\u003Ctd>Rust plus Visual Studio Build Tools enabled native compilation\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Project verification\u003C\u002Ftd>\u003Ctd>No compiled project\u003C\u002Ftd>\u003Ctd>\u003Ccode>cargo run\u003C\u002Fcode> built and ran hello-rust\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Ch2>Common mistakes\u003C\u002Fh2>\u003Cul>\u003Cli>Typing the \u003Ccode>$\u003C\u002Fcode> from the docs. Fix: enter only the command after the symbol, such as \u003Ccode>rustc --version\u003C\u002Fcode>.\u003C\u002Fli>\u003Cli>Using an old terminal window. Fix: close and reopen PowerShell or Windows Terminal so PATH changes load.\u003C\u002Fli>\u003Cli>Skipping Visual Studio build tools. Fix: install the C++ workload or Build Tools 2022 if Cargo later fails during linking.\u003C\u002Fli>\u003C\u002Ful>\u003Ch2>What's next\u003C\u002Fh2>\u003Cp>Once \u003Ccode>cargo run\u003C\u002Fcode> works, move to the Rust Book, then try Rust by Example or the playground for smaller exercises. If you want a gentler learning path, pair Rust with a basic command-line primer so terminal syntax feels less mysterious.\u003C\u002Fp>","A Windows 11 user hit a shell prompt error, then learned how to verify Rust correctly.","users.rust-lang.org","https:\u002F\u002Fusers.rust-lang.org\u002Ft\u002Fproblem-installing-rust\u002F141883",null,"https:\u002F\u002Fxxdpdyhzhpamafnrdkyq.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fcovers\u002Finline-1787040168017-youp.png","tools","en","81dd04bf-0249-4fc3-b81f-855064d0d8c9",[17,18,19,20,21],"Rust","rustup","Cargo","PowerShell","Windows 11",[23,24,25],"The \u003Ccode>$\u003C\u002Fcode> in Rust docs is a prompt marker, not something you type.","Windows Rust installs need Visual Studio C++ build tools for native linking.","A fresh terminal and \u003Ccode>cargo run\u003C\u002Fcode> are the quickest way to verify a working setup.",0,"2026-08-18T08:02:23.659088+00:00","2026-08-18T08:02:23.655+00:00",{"tags":30,"relatedLang":33,"relatedPosts":37},[31],{"name":17,"slug":32},"rust",{"id":15,"slug":34,"title":35,"language":36},"install-rust-on-windows-and-verify-rustc-zh","Windows 安裝 Rust 並驗證 rustc","zh",[38,44,50,56,62,68],{"id":39,"slug":40,"title":41,"cover_image":42,"image_url":42,"created_at":43,"category":13},"dc764c2f-e238-47ee-bee8-87b79ffba57d","turbovec-rust-vector-index-packs-10m-docs-4gb-en","turbovec: Rust vector index cuts RAM to 4 GB","https:\u002F\u002Fxxdpdyhzhpamafnrdkyq.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fcovers\u002Finline-1787043776682-e20z.png","2026-08-18T09:02:28.418851+00:00",{"id":45,"slug":46,"title":47,"cover_image":48,"image_url":48,"created_at":49,"category":13},"fa7cb9a9-5b63-4da7-9def-f3872490c821","claude-code-desktop-ships-inside-one-app-en","Claude Code Desktop lets you ship inside one app","https:\u002F\u002Fxxdpdyhzhpamafnrdkyq.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fcovers\u002Finline-1786952008135-zrjx.png","2026-08-17T07:32:57.721723+00:00",{"id":51,"slug":52,"title":53,"cover_image":54,"image_url":54,"created_at":55,"category":13},"3cf08a14-7ed0-4328-af1f-bf3a2b9f328a","cursors-iphone-app-brings-coding-agents-mobile-en","Cursor’s iPhone app brings coding agents mobile","https:\u002F\u002Fxxdpdyhzhpamafnrdkyq.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fcovers\u002Finline-1786933983162-lma8.png","2026-08-17T02:32:34.225742+00:00",{"id":57,"slug":58,"title":59,"cover_image":60,"image_url":60,"created_at":61,"category":13},"7126b4be-9068-4743-b266-aa5f5aae862b","deepseek-plugin-harness-turns-agents-into-tools-en","DeepSeek’s plugin harness turns agents into tools","https:\u002F\u002Fxxdpdyhzhpamafnrdkyq.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fcovers\u002Finline-1786779186305-8ppa.png","2026-08-15T07:32:43.83464+00:00",{"id":63,"slug":64,"title":65,"cover_image":66,"image_url":66,"created_at":67,"category":13},"c3952c24-178c-4cb8-a1f8-a54a740f870e","claude-code-sessions-message-each-other-en","Claude Code lets sessions message each other","https:\u002F\u002Fxxdpdyhzhpamafnrdkyq.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fcovers\u002Finline-1786753979904-qpen.png","2026-08-15T00:32:41.517992+00:00",{"id":69,"slug":70,"title":71,"cover_image":72,"image_url":72,"created_at":73,"category":13},"5dd1b059-52b0-4714-8ccd-212e0a0a4c53","10-ai-github-repos-that-actually-save-time-en","10 AI GitHub repos that actually save time","https:\u002F\u002Fxxdpdyhzhpamafnrdkyq.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fcovers\u002Finline-1786712619804-x8qp.png","2026-08-14T13:03:15.028729+00:00",[75,80,85,90,95,100,105,110,115,120],{"id":76,"slug":77,"title":78,"created_at":79},"8008f1a9-7a00-4bad-88c9-3eedc9c6b4b1","surepath-ai-mcp-policy-controls-en","SurePath AI's New MCP Policy Controls Enhance AI Security","2026-03-26T01:26:52.222015+00:00",{"id":81,"slug":82,"title":83,"created_at":84},"27e39a8f-b65d-4f7b-a875-859e2b210156","mcp-standard-ai-tools-2026-en","MCP Standard in 2026: Integrating AI Tools","2026-03-26T01:27:43.127519+00:00",{"id":86,"slug":87,"title":88,"created_at":89},"165f9a19-c92d-46ba-b3f0-7125f662921d","rag-2026-transforming-enterprise-ai-en","How RAG in 2026 is Transforming Enterprise AI","2026-03-26T01:28:11.485236+00:00",{"id":91,"slug":92,"title":93,"created_at":94},"6a2a8e6e-b956-49d8-be12-cc47bdc132b2","mastering-ai-prompts-2026-guide-en","Mastering AI Prompts: A 2026 Guide for Developers","2026-03-26T01:29:07.835148+00:00",{"id":96,"slug":97,"title":98,"created_at":99},"3ab2c67e-4664-4c67-a013-687a2f605814","garry-tan-open-sources-claude-code-toolkit-en","Garry Tan Open-Sources a Claude Code Toolkit","2026-03-26T08:26:20.245934+00:00",{"id":101,"slug":102,"title":103,"created_at":104},"66a7cbf8-7e76-41d4-9bbf-eaca9761bf69","github-ai-projects-to-watch-in-2026-en","20 GitHub AI Projects to Watch in 2026","2026-03-26T08:28:09.752027+00:00",{"id":106,"slug":107,"title":108,"created_at":109},"9f332fda-eace-448a-a292-2283951eee71","practical-github-guide-learning-ml-2026-en","A Practical GitHub Guide to Learning ML in 2026","2026-03-27T01:16:50.125678+00:00",{"id":111,"slug":112,"title":113,"created_at":114},"1b1f637d-0f4d-42bd-974b-07b53829144d","aiml-2026-student-ai-ml-lab-repo-review-en","AIML-2026 Is a Bare-Bones Student Lab Repo","2026-03-27T01:21:51.661231+00:00",{"id":116,"slug":117,"title":118,"created_at":119},"6d1bf3f6-e191-4d30-b55b-8a0722fa6afe","ai-trending-github-repos-and-research-feeds-en","AI Trending Tracks Repos and Research Feeds","2026-03-27T01:31:35.709532+00:00",{"id":121,"slug":122,"title":123,"created_at":124},"010539a1-4c3a-4bd3-937a-26616422ee0d","awesome-ai-for-science-research-tools-map-en","Awesome AI for Science Is Becoming a Real Research Map","2026-03-27T01:46:50.89513+00:00"]