Skip to main content

Module fetch

Module fetch 

Source
Expand description

Registry fetch fan-out: concurrent version fetching and per-package classification.

Pure classification helpers extracted from deps-lsp’s document/fetch.rs: resolving each dependency occurrence to a fetchable source, fetching and classifying a single package’s latest/yanked/deprecated/license status, and fanning that out concurrently across a manifest’s dependencies. The orchestration around these decisions — marking a document loading, opening an LSP progress notification, and reacting to a mid-flight document edit — stays in deps-lsp’s fetch_registry_versions_for_change, since it owns state this crate must not know about (issue #1059).

Structs§

FetchResult
Result of parallel version fetching.

Functions§

apply_fetch_outcomes
Re-keys a completed fetch’s yanked/fetch-failure findings from raw to normalized package names and applies them to outcomes.
composer_minimum_stability
No-op when the composer feature is disabled — crate::setup::ComposerParseResult does not exist in that build, so parse_result can never downcast to it.
dedup_dependencies_by_source
Pairs each distinct dependency name in parse_result with the source its occurrence(s) resolve to.
fetch_latest_versions_parallel
Fetches latest versions for multiple packages in parallel with progress reporting.

Type Aliases§

DepSources
A dependency name paired with the resolved source to route its registry fetch through (spec FR-001), as built by dedup_dependencies_by_source.