deps-core
Core abstractions for deps-lsp: traits, caching, and generic LSP handlers.
This crate provides the shared infrastructure used by all ecosystem-specific crates in the deps-lsp workspace. Every ecosystem crate depends on deps-core and implements its Ecosystem trait.
What this crate provides
Ecosystemtrait — Unified interface for all package ecosystems (parse, registry, format)Registrytrait — Abstraction over package registries with version lookupLockFileProvidertrait — Abstract lock file parsing for resolved versions- Generic LSP handlers —
generate_inlay_hints,generate_hover,generate_code_actions,generate_diagnostics HttpCache— ETag/Last-Modified caching for registry HTTP requests- Error types — Unified error handling with
thiserror
Installation
[]
= "0.9.2"
[!IMPORTANT] Requires Rust 1.89 or later.
Implementing a new ecosystem
use ;