Bringing a great IDE experience to the Rust programming language
open sourceMIT OR Apache-2.0free
rust-analyzer is the language server for the Rust programming language: an implementation of the Language Server Protocol that gives any LSP editor (VS Code, Vim and Neovim, Emacs, Zed and others) code completion, go-to-definition, find-all-references, refactorings, inlay hints and integrated diagnostics from rustc and Clippy, with formatting through rustfmt. Its VS Code extension bundles the server, and prebuilt binaries are available for Windows, Linux and macOS (or through rustup). Internally it is a set of libraries for analyzing Rust code, also published on crates.io for programmatic use. It is part of the Rust project and is developed by Ferrous Systems with support from companies and individuals.
Problems it solves
- code completion and go-to-definition for Rust in my editor
- Rust IDE features in Vim, Neovim, Emacs or Zed, not only VS Code
- see rustc and Clippy errors inline in my editor while writing Rust
- rename symbols and run refactorings across a Rust project
- show inferred types inline as hints while reading Rust code
- analyze Rust source code programmatically with the same engine an IDE uses
Features
- Language Server Protocol implementation for Rust
- code completion and go-to-definition
- find all references
- refactorings and assists
- inlay hints
- integrated diagnostics from rustc and Clippy
- formatting with rustfmt
- VS Code extension that bundles the server
- prebuilt binaries for Windows, Linux and macOS
Limitations
- Only the latest stable Rust standard library source is officially supported.1
Alternatives
The same job
These do what rust-analyzer does.
