RustOwl is an LSP server that underlines Rust lifetimes, borrows, moves, and errors in VS Code, Neovim, and Emacs when you hover or wait on code.
Overview
RustOwl visualizes ownership movement and lifetimes of Rust variables during editing. Saving source triggers analysis; hovering a variable or call after a short delay shows colored underlines for live ranges, borrows, moves, and borrow checker errors.
Green marks definite live lifetimes, wavy green marks maybe-live paths, blue and purple distinguish immutable and mutable borrows, orange marks moves or calls, and red marks lifetime errors.
Distribution includes a VS Code extension, Neovim and Emacs integrations, and a documented LSP protocol for other editors. A hosted play site lets users try the tool without local setup.
Prerequisites include a Rust toolchain with cargo. The project notes decoration limits for certain glyphs and supports recent Rust versions on a best-effort basis.
Key features
- Lifetime underline colors
- Mutable borrow highlighting
- Move and call marking
- VS Code extension
- Neovim and Emacs plugins
- Extended Rust LSP protocol
Use cases
- Debugging borrow checker errors
- Teaching Rust ownership
- Optimizing lifetime annotations
- Editor-integrated Rust analysis