rust-analyzer LSP
name: rust-analyzer-lsp
by bowen31337 · published 2026-03-22
$ claw add gh:bowen31337/bowen31337-rust-analyzer-lsp---
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-analyzer LSP
Rust language server integration providing comprehensive code intelligence through rust-analyzer.
Capabilities
Installation
Via rustup (recommended)
rustup component add rust-analyzerVia Homebrew (macOS)
brew install rust-analyzerVia package manager (Linux)
# Ubuntu/Debian
sudo apt install rust-analyzer
# Arch Linux
sudo pacman -S rust-analyzerManual download
Download pre-built binaries from the [releases page](https://github.com/rust-lang/rust-analyzer/releases).
Verify installation:
rust-analyzer --versionUsage
The language server runs automatically in LSP-compatible editors. For manual operations:
Format code
cargo fmtRun linter
cargo clippyBuild and test
cargo build
cargo testCheck without building
cargo checkConfiguration
Create `.rust-analyzer.json` in project root:
{
"checkOnSave": {
"command": "clippy"
},
"inlayHints": {
"typeHints": true,
"parameterHints": true
}
}Integration Pattern
When editing Rust code:
1. rust-analyzer provides real-time diagnostics
2. Run `cargo fmt` to format code
3. Use `cargo clippy` for linting
4. Run `cargo test` before committing
Common Cargo Commands
More Information
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...