Adding a New Ecosystem
This chapter walks through adding support for a new package ecosystem (e.g., a language or
build tool not yet covered) to deps-lsp, from an empty crate to a registered, tested
implementation. It assumes familiarity with the Architecture Overview —
in particular the Ecosystem trait, Registry, and EcosystemFormatter.
Read the steps in order; each builds on artifacts (types, error variants) created in an earlier one:
- Create the Crate
- Handle Errors
- Define Types
- Implement the Parser
- Implement the Registry Client
- Implement the Ecosystem Trait
- Implement the Lock File Provider
- Implement the Formatter
- Create
lib.rs - Register the Ecosystem
- Add Tests
Once implemented, work through the Checklist before opening a PR. See
Reference Implementations for existing crates to study, and
Templates for a scaffold to start from. Key API Contracts
documents conventions (no async_trait, position tracking, LockFileProvider signatures,
registry client method naming) that apply across every step above.