Rust
Language server: rust-analyzer
rust-analyzer ships with rustup:
rustup component add rust-analyzerOr download from GitHub releases.
Requirements
Section titled “Requirements”Cargo.tomlat project root- Rust toolchain installed
Zero Config
Section titled “Zero Config”Cargo.toml is auto-detected. For workspace crates:
cd my-rust-workspacekrait init # detects all member cratesSupported Operations
Section titled “Supported Operations”find symbol— functions, structs, enums, traits, implshover— Rust types, trait bounds, doc commentscheck—cargo checkerrors surfaced via LSPedit replace— replaces function/impl bodiesrename— cross-file renamefind refs— all usages
Trait Methods
Section titled “Trait Methods”Use dotted notation for trait/impl methods:
krait read symbol MyStruct.my_methodkrait hover MyStruct.my_methodPerformance
Section titled “Performance”rust-analyzer may take 10-30s to fully load a large workspace on first start. Subsequent warm queries are 30-80ms.