@elyracode/lsp-rust
v0.9.30
Published
Rust LSP integration for Elyra — semantic code navigation and diagnostics via rust-analyzer
Maintainers
Readme
@elyracode/lsp-rust
Rust LSP integration for Elyra. Starts a rust-analyzer process per session and exposes semantic code navigation and diagnostics as agent tools — go-to-definition, find references, hover, and diagnostics for Rust and Cargo projects.
Prerequisites
rust-analyzer must be on your PATH (or installed via rustup, which places it in ~/.cargo/bin/).
rustup component add rust-analyzer…or install a standalone binary from the rust-analyzer releases.
A Cargo.toml must exist in the project root. The extension does nothing if one is not found.
Note: rust-analyzer indexes the workspace on first use, which can take longer on large crates. The first
rust_diagnostics/rust_hovercall after a session starts may need a moment.
Installation
elyra install npm:@elyracode/lsp-rustAvailable Tools
| Tool | Description |
|------|-------------|
| rust_definitions | Go to the definition of a Rust symbol at a given file position |
| rust_references | Find all references to a Rust symbol across the project |
| rust_diagnostics | Get Rust compiler/clippy-derived errors and warnings for a file |
| rust_hover | Get type information and documentation for a symbol |
All tools accept 1-based line and column numbers and return human-readable text results.
Symbol-aware auto-context
After a successful edit to a .rs file, the extension proactively resolves unfamiliar-looking type/struct/trait names referenced in the new code via rust_analyzer's hover, and appends a short summary directly to the edit's own tool result — no extra rust_hover round trip needed to check "is this the shape I think it is".
