refactor: consolidate caching code under src/cache/#5994
Merged
baszalmstra merged 3 commits intoprefix-dev:mainfrom May 1, 2026
Merged
refactor: consolidate caching code under src/cache/#5994baszalmstra merged 3 commits intoprefix-dev:mainfrom
baszalmstra merged 3 commits intoprefix-dev:mainfrom
Conversation
Move ArtifactCache (was keys/source_build/cache.rs), WorkspaceCache
(was keys/source_build/workspace.rs), CacheDirs (was cache_dirs.rs),
and rename build_backend_metadata.rs -> backend_metadata.rs so all
on-disk caches live in one module. Adds a module-level rustdoc
overview to cache/mod.rs and cache/{backend_metadata,dirs}.rs.
No public-API changes: the four crate-level re-exports (CacheDirs,
BuildBackendMetadataCache, BuildBackendMetadataCacheEntry,
CacheRevision, MetadataCache, CacheEntry) now go through cache::*.
Pull cache types into use-statements at the top of each consumer instead of qualifying call sites with crate::cache::* or cache::backend_metadata::*. No behavior change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Move ArtifactCache (was keys/source_build/cache.rs), WorkspaceCache (was keys/source_build/workspace.rs), CacheDirs (was cache_dirs.rs), and rename build_backend_metadata.rs -> backend_metadata.rs so all on-disk caches live in one module. Adds a module-level rustdoc overview to cache/mod.rs and cache/{backend_metadata,dirs}.rs.
No public-API changes: the four crate-level re-exports (CacheDirs, BuildBackendMetadataCache, BuildBackendMetadataCacheEntry, CacheRevision, MetadataCache, CacheEntry) now go through cache::*.