Skip to content

refactor: consolidate caching code under src/cache/#5994

Merged
baszalmstra merged 3 commits intoprefix-dev:mainfrom
baszalmstra:claude/extract-pixi-build-cache-8kCAf
May 1, 2026
Merged

refactor: consolidate caching code under src/cache/#5994
baszalmstra merged 3 commits intoprefix-dev:mainfrom
baszalmstra:claude/extract-pixi-build-cache-8kCAf

Conversation

@baszalmstra
Copy link
Copy Markdown
Contributor

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::*.

claude added 3 commits May 1, 2026 18:50
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.
@baszalmstra baszalmstra merged commit 5e41ded into prefix-dev:main May 1, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants