semantic-aware code completion with import resolution
Provides symbol-based code completion by analyzing the current file and workspace through LSP, automatically resolving and inserting necessary imports. Uses Rust's type system and symbol table to rank suggestions contextually, enabling developers to complete code with full namespace awareness rather than simple text matching.
Unique: Uses full workspace symbol indexing and Rust's type system for context-aware completion, rather than regex or simple AST matching; automatically inserts qualified imports based on module visibility analysis
vs alternatives: More accurate than basic text-completion tools because it understands Rust's module system and trait bounds, avoiding invalid suggestions that would fail type checking
incremental type inference display with inlay hints
Performs real-time type inference using Hindley-Milner algorithm and displays inferred types as inline hints (parameter names, return types, closure captures) without requiring explicit annotations. Leverages LSP's inlay hint protocol to render non-intrusive overlays in the editor, updating incrementally as code changes.
Unique: Implements incremental type inference using Hindley-Milner algorithm with LSP inlay hint protocol, rendering non-intrusive inline type information that updates as code changes without requiring explicit annotations
vs alternatives: Provides richer type visibility than Rust's built-in compiler error messages, and more performant than manual type annotation because inference is cached and incremental
dependency and crate version analysis
Analyzes Cargo.toml and Cargo.lock to provide information about project dependencies, including version constraints, available updates, and dependency tree visualization. Displays dependency metadata on hover and provides quick actions to update or add dependencies.
Unique: Provides in-editor dependency analysis by parsing Cargo.toml and querying crates.io, with quick actions to update versions without leaving the editor
vs alternatives: More convenient than manual Cargo.toml editing because it provides version suggestions and validates constraints, though it does not replace dedicated dependency management tools like cargo-edit
lifetime and borrow checker visualization
Displays lifetime parameters and borrow checker information through inlay hints and hover tooltips, helping developers understand ownership and borrowing rules. Shows lifetime annotations, mutable/immutable borrow status, and move semantics through semantic highlighting and inline annotations.
Unique: Visualizes Rust's lifetime and borrowing semantics through inlay hints and semantic highlighting, providing educational feedback on ownership rules without requiring explicit annotations
vs alternatives: More helpful than compiler error messages alone because it shows lifetime inference in real-time, helping developers understand ownership before compilation
test discovery and test runner integration
Discovers Rust tests (functions marked with #[test] or in test modules) and provides UI elements (CodeLens) to run individual tests or test suites directly from the editor. Integrates with cargo test to execute tests and display results inline.
Unique: Discovers tests via AST analysis and provides CodeLens UI elements for running tests. Integrates with cargo test to execute and display results inline.
vs alternatives: More convenient than running cargo test in a terminal because tests can be run with a single click; provides better visual feedback than terminal output.
format-on-save and rustfmt integration
Integrates with rustfmt (Rust's standard code formatter) to automatically format code on save or on demand. Applies rustfmt's formatting rules to ensure consistent code style across the project. Respects rustfmt.toml configuration files.
Unique: Integrates with rustfmt via LSP to provide on-save and on-demand formatting. Respects project-level rustfmt.toml configuration.
vs alternatives: More convenient than running rustfmt manually because formatting is automatic; ensures consistency with rustfmt's standard rules.
workspace-wide symbol search and navigation
Indexes all Rust symbols (functions, types, traits, modules) across the workspace and provides fast fuzzy search via LSP workspace symbol queries. Enables go-to-definition, go-to-implementation, and go-to-type-definition navigation by resolving symbol references through the project's dependency graph and module hierarchy.
Unique: Maintains a persistent workspace symbol index updated incrementally as files change, enabling sub-millisecond fuzzy search across thousands of symbols without re-parsing the entire codebase
vs alternatives: Faster and more accurate than grep-based symbol search because it understands Rust's scoping rules and module visibility, avoiding false positives from comments or string literals
semantic syntax highlighting with trait and lifetime awareness
Performs semantic tokenization (not just regex-based syntax highlighting) to color code Rust constructs based on their semantic role: traits, lifetimes, mutable bindings, unsafe blocks, and macro invocations. Uses LSP semantic tokens protocol to send fine-grained token information to the editor, enabling theme-aware coloring that reflects code semantics.
Unique: Uses LSP semantic tokens protocol to provide fine-grained, context-aware syntax highlighting that distinguishes traits, lifetimes, and unsafe blocks based on semantic analysis rather than regex patterns
vs alternatives: More accurate than TextMate grammar-based highlighting because it understands Rust's type system and can distinguish between types and traits, or mutable and immutable bindings
+6 more capabilities