Skip to main content

Crate mos_cache

Crate mos_cache 

Source
Expand description

Incremental build cache (manifest §7, §32).

Today this crate holds the typed dependency-identity vocabulary (DependencyId / DependencyKind / ProjectPath, plus the BibliographyDependency content boundary) and a tiny in-memory byte Cache. The DepNode graph and the persistent content-addressed .mos-cache/ are MVP 5 work, still design-side in docs/incremental-dependencies.md (§9).

Modules§

dependency 🔒
Typed build-dependency identities (manifest §7, §32; MVP 5).

Structs§

BibliographyDependency
A bibliography input paired with its content-hash boundary.
CacheKey
A cache entry’s address. Real keys include node, style, and width hashes (manifest §32). For now the type is opaque.
InMemoryCache
Hash-map backed cache used by tests and the current MVP pipeline.
ProjectPath
A canonical, project-relative resource path used as a file dependency’s identity.

Enums§

DependencyId
A typed, deterministic identity for one build dependency.
DependencyKind
The category of a build dependency.
ProjectPathError
Error returned when a path cannot be used as a project-relative dependency identity.

Traits§

Cache
Cache trait. Implementations: in-memory (default), on-disk (MVP 5).