Home

rustanalyzer

Rust Analyzer is a language server for the Rust programming language. Implemented as a standalone project, it provides IDE-like features to editors via the Language Server Protocol (LSP). It is one of the most widely used Rust language servers and is commonly compared with the Rust Language Server (RLS).

Development and design: The project emphasizes speed and accuracy by performing semantic analysis and incremental computation

Key features include code completion with contextual suggestions; go to definition, find references, and hover-based type

Editors and integrations: The most common deployment is via the VS Code extension named rust-analyzer, but the

Licensing and status: Rust Analyzer is open source and released under a dual MIT/Apache license. Its source

over
the
codebase.
It
maintains
a
local
database
of
analysis
results
and
reuses
previous
work
as
the
code
changes.
The
architecture
relies
on
the
Salsa
incremental
framework
and
integrates
with
Cargo
to
understand
workspace
structure
and
dependencies,
striving
to
deliver
precise
diagnostics
and
fast
navigation
in
large
projects.
information;
inline
documentation;
on-the-fly
diagnostics
and
code
actions;
refactoring
support;
inlay
hints
for
types
and
parameter
names;
macro
expansion
and
related
diagnostics.
It
aims
to
provide
robust
support
for
multi-crate
workspaces
and
integrates
with
Rust
tooling.
server
is
editor-agnostic
and
usable
with
any
editor
that
supports
the
Language
Server
Protocol.
Plugins
exist
for
Vim/Neovim,
Emacs,
Sublime
Text,
and
IntelliJ
Rust.
code
and
releases
are
hosted
on
GitHub,
with
an
active
development
community
and
frequent
updates
adding
features
and
improving
performance.