Expand description
Core abstractions for deps-lsp.
This crate provides the foundational traits and utilities used across all ecosystem-specific implementations (Cargo, npm, PyPI, etc.).
§Architecture
deps-core defines:
- Traits:
Registry,Version,Metadata,Ecosystem,ParseResult - HTTP Cache: Shared caching layer with ETag/Last-Modified validation
- Error Types: Unified error handling across all ecosystems
Re-exports§
pub use cache::CachedResponse;pub use cache::HttpCache;pub use ecosystem::Dependency;pub use ecosystem::Ecosystem;pub use ecosystem::EcosystemConfig;pub use ecosystem::ParseResult;pub use ecosystem_registry::EcosystemRegistry;pub use error::DepsError;pub use error::Result;pub use lockfile::LockFileProvider;pub use lockfile::ResolvedPackage;pub use lockfile::ResolvedPackages;pub use lockfile::ResolvedSource;pub use lsp_helpers::EcosystemFormatter;pub use lsp_helpers::LineOffsetTable;pub use lsp_helpers::generate_code_actions as lsp_generate_code_actions;pub use lsp_helpers::generate_diagnostics as lsp_generate_diagnostics;pub use lsp_helpers::generate_hover as lsp_generate_hover;pub use lsp_helpers::generate_inlay_hints as lsp_generate_inlay_hints;pub use lsp_helpers::is_same_major_minor;pub use lsp_helpers::position_in_range;pub use parser::DependencyInfo;pub use parser::DependencySource;pub use parser::LoadingState;pub use parser::ManifestParser;pub use parser::ParseResultInfo;pub use registry::Metadata;pub use registry::Registry;pub use registry::Version;pub use registry::find_latest_stable;pub use version_matcher::Pep440Matcher;pub use version_matcher::SemverMatcher;pub use version_matcher::VersionRequirementMatcher;pub use version_matcher::extract_pypi_min_version;pub use version_matcher::normalize_and_parse_version;
Modules§
- cache
- completion
- Core completion infrastructure for deps-lsp.
- ecosystem
- ecosystem_
registry - error
- lockfile
- Lock file parsing abstractions.
- lsp_
helpers - Shared LSP response builders.
- macros
- Macro utilities for reducing boilerplate in ecosystem implementations.
- parser
- registry
- version_
matcher - Version requirement matching abstractions.
Macros§
- delegate_
to_ variants - Delegate a method call to all enum variants.
- impl_
dependency - Implement
DependencyandDependencyInfotraits for a struct. - impl_
metadata - Implement
Metadatatrait for a struct. - impl_
parse_ result - Implement
ParseResulttrait for a struct. - impl_
version - Implement
Versiontrait for a struct.