Getting started
Visual Studio extension for Rust Currently in development, and not feature complete. Stable versions are available on the Visual Studio extension gallery. Unstable, but more recent builds are downloadable from AppVeyor (choose 'Configuration: Release' and 'Artifacts'). Rust Extension Pack is a collection of extensions that can help you write and test Rust applications in Visual Studio Code. Browse other questions tagged rust visual-studio-code rust-cargo rls or ask your own question. The Overflow Blog Podcast 331: One in four visitors to Stack Overflow copies code. Podcast 332: Non-fungible Talking. Featured on Meta Stack Overflow for Teams is now free for up to 50 users, forever. Rust (RLS) crates; Better TOML; Potential Extension Additions. Rust Test Explorer. More info here; Check out our Common Extension Pack that contains a couple other extensions that are useful for any type of project! Here's some of our other Rust-related projects you may want to check out! Rusty-hook - A git hook utility for your.
If you're just getting started withRust and would like a more detailed walk-through, see ourgetting started page.
Windows considerations
On Windows, Rust additionally requires the C++ build tools for Visual Studio 2013 or later. The easiest way to acquire the build tools is by installing Microsoft Visual C++ Build Tools 2019 which provides just the Visual C++ build tools. Alternately, you can install Visual Studio 2019, Visual Studio 2017, Visual Studio 2015, or Visual Studio 2013 and during install select the “C++ tools.”
For further information about configuring Rust on Windows see the Windows-specific rustup
documentation.
Visual Studio Rust Support
Toolchain management with rustup
Visual Studio Rust Compiler
Rust is installed and managed by the rustup
tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. rustup
manages these builds in a consistent way on every platform that Rust supports, enabling installation of Rust from the beta and nightly release channels as well as support for additional cross-compilation targets.
If you've installed rustup
in the past, you can update your installation by running rustup update
.
For more information see the rustup
documentation.
Configuring the PATH
environmentvariable
In the Rust development environment, all tools are installed to the ~/.cargo/bin
%USERPROFILE%.cargobin
directory, and this is where you will find the Rust toolchain, including rustc
, cargo
, and rustup
.
Accordingly, it is customary for Rust developers to include this directory in their PATH
environment variable. During installation rustup
will attempt to configure the PATH
. Because of differences between platforms, command shells, and bugs in rustup
, the modifications to PATH
may not take effect until the console is restarted, or the user is logged out, or it may not succeed at all.
If, after installation, running rustc --version
in the console fails, this is the most likely reason.
Uninstall Rust
If at any point you would like to uninstall Rust, you can run rustup self uninstall
. We'll miss you though!