rust-analyzer LSP

Plugin

为 Claude Code 接入 rust-analyzer,让 agent 在 Rust 代码里跳转定义、查找引用、分析符号与调用关系。需先通过 rustup 或包管理器安装 rust-analyzer。Anthropic 官方插件。

anthropics/claude-plugins-official · plugins/rust-analyzer-lsp40.3k
在 GitHub 上查看
README

rust-analyzer-lsp

Rust language server for Claude Code, providing code intelligence and analysis.

Supported Extensions

.rs

Installation

rustup component add rust-analyzer

Via Homebrew (macOS)

brew install rust-analyzer

Via package manager (Linux)

# Ubuntu/Debian
sudo apt install rust-analyzer

# Arch Linux
sudo pacman -S rust-analyzer

Manual download

Download pre-built binaries from the releases page.

More Information