A language server that adds IDE-style features when you write Rust. It works with any editor that speaks the Language Server Protocol.
Overview
rust-analyzer is a language server aimed at Rust development. It plugs into editors such as VS Code, Vim, Emacs, and Zed through the Language Server Protocol so teams can keep their preferred editor while sharing the same analysis backend.
It supports navigation and editing workflows including go-to-definition, find-all-references, refactorings, and code completion. Formatting is integrated via rustfmt, and diagnostics come from rustc and clippy so problems surface in the editor as you type.
The project is also described as a compiler front-end for IDEs. Prebuilt language server binaries are published for Windows, Linux, and Mac, and a VS Code extension is available from the marketplace. Usage and troubleshooting are discussed on the Rust forum under IDEs and Editors.
Key features
- Go-to-definition
- Find all references
- Code completion
- Refactorings
- Integrated rustfmt formatting
- rustc and clippy diagnostics
- Language Server Protocol support
- Works with many editors
Use cases
- Rust development in VS Code
- Rust editing in Vim or Emacs
- In-editor Rust diagnostics
- Rust code navigation and refactors