Rust language server (rust-analyzer) providing code intelligence and analysis for .rs files. Use when working with Rust code that needs autocomplete, go-to-definition, find references, error detection, or refactoring support.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install rust-analyzer-lsp或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install rust-analyzer-lsp⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/rust-analyzer-lsp/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: rust-analyzer-lsp description: Rust language server (rust-analyzer) providing code intelligence and analysis for .rs files. Use when working with Rust code that needs autocomplete, go-to-definition, find references, error detection, or refactoring support. ---
Rust language server integration providing comprehensive code intelligence through rust-analyzer.
.rsrustup component add rust-analyzer
brew install rust-analyzer
# Ubuntu/Debian
sudo apt install rust-analyzer
# Arch Linux
sudo pacman -S rust-analyzer
Download pre-built binaries from the releases page.
Verify installation:
rust-analyzer --version
The language server runs automatically in LSP-compatible editors. For manual operations:
cargo fmt
cargo clippy
cargo build
cargo test
cargo check
Create .rust-analyzer.json in project root:
{
"checkOnSave": {
"command": "clippy"
},
"inlayHints": {
"typeHints": true,
"parameterHints": true
}
}
When editing Rust code:
cargo fmt to format codecargo clippy for lintingcargo test before committingcargo new - Create new projectcargo build - Compile projectcargo run - Build and runcargo test - Run testscargo check - Fast compile checkcargo clippy - Run lintercargo fmt - Format codecargo doc --open - Generate and open docs安装 Rust Analyzer LSP 后,可以对 AI 说这些话来触发它
Help me get started with Rust Analyzer LSP
Explains what Rust Analyzer LSP does, walks through the setup, and runs a quick demo based on your current project
Use Rust Analyzer LSP to rust language server (rust-analyzer) providing code intelligence an...
Invokes Rust Analyzer LSP with the right parameters and returns the result directly in the conversation
What can I do with Rust Analyzer LSP in my developer & devops workflow?
Lists the top use cases for Rust Analyzer LSP, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/rust-analyzer-lsp/ 目录(个人级,所有项目可用),或 .claude/skills/rust-analyzer-lsp/(项目级)。重启 AI 客户端后,用 /rust-analyzer-lsp 主动调用,或让 AI 根据上下文自动发现并使用。
Rust Analyzer LSP 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Rust Analyzer LSP 可免费安装使用。请查阅仓库了解许可证信息。
Rust language server (rust-analyzer) providing code intelligence and analysis for .rs files. Use when working with Rust code that needs autocomplete, go-to-definition, find references, error detection, or refactoring support.
Rust Analyzer LSP 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Rust Analyzer LSP
Identifies repetitive steps in your workflow and sets up Rust Analyzer LSP to handle them automatically