Skip to content

Repository files navigation

rust-analyzer.vs - Rust language support for Visual Studio 2022 / 2026

Discord CDP License: CC BY-NC-SA 4.0 Release Visual Studio Marketplace Downloads Visual Studio Marketplace Rating Repo stars

Download this extension from the Visual Studio Marketplace or get the CI build.

Supported hosts and prerequisites

One canonical Windows amd64 VSIX supports Community, Professional, and Enterprise with installation range [17.12,19.0):

  • Visual Studio 2022 17.12 or later within 17.x
  • Visual Studio 2026 18.x

The Core Editor, rustup on the Visual Studio process PATH, a default Rust toolchain, and operational Cargo are required. Nightly is optional and needed only for Test Explorer. See Prerequisites for official sources, install and upgrade commands, and verification.

RustDevelopmentPack is retired; install rust-analyzer.vs directly.

💡 Announcement

This extension is free & always will be. Rust developers must have basic end to end experience for free. But also there is soon going to be paid extension that includes all features in this + wsl/embedded/drive development + editor enhancements + templates + and many more.

Principles

  1. Drive developer towards Rust community best practices.
  2. UI and behavior parity with 'Open Folder' experience for a C# solution with multiple projects (unless it contradicts #1).
  3. Enhance with Rust community tools sets e.g. fmt, clippy, examples, docs. etc.
  4. Killer features e.g. ChatGPT integration.

Features

These features continue to get tested with top Rust OSS projects like cargo, ruffle, iced, geo, ruff, reqwest, wasmtime. There are bugs! 😉

Upcoming

  • Cross compilation (wasm, linux, etc.) / build & run on WSL2 / leverage docker.
  • Test experience enhancements (document and benchmark tests).

Probably never

  • Basic project templates.
  • ChatGPT integration.
  • Folder enhancements (icons, context menus).
  • crates.io integration.
  • cargo management.

How can I help?

If you enjoy using the extension, please give it a ★★★★★ rating on the Visual Studio Marketplace.

Should you encounter bugs or if you have feature requests, head on over to the GitHub repo to open an issue if one doesn't already exist.

Pull requests are also very welcome, since I can't always get around to fixing all bugs myself.

Common links

Acknowledgements

About

Rust language support for Visual Studio 2022

Topics

Resources

Stars

174 stars

Watchers

4 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages