Skip to main content

Module cache

Module cache 

Source
Expand description

Cached diff baselines: the last accepted source of every watched .rs file plus web asset content hashes, classified atomically per save batch through crate::view_diff.

Structs§

ClassifiedFilePatch
Classified Tier-1 hot-patch output for one watched .rs file.
WatchCache
Baselines of every watched .rs file, content hashes of watched non-.rs web assets, and per-path hashes of the last attempted build so failed Tier-2 builds and repeated ForceScan calls don’t loop on unchanged files.
WatchSnapshot
Pre-build snapshot of watched .rs file contents and non-.rs web asset content hashes so adopting baselines after a Tier-2 build never swallows mid-build edits and never redundantly rebuilds unchanged non-.rs web assets on ForceScan.

Enums§

FileDiff
Classification of one saved .rs file against its cached baseline.

Functions§

canonicalize_preserving_missing
Canonicalizes path, absolutizing relative paths and falling back to canonicalizing the nearest existing ancestor when path does not exist yet (e.g. deleted files or macOS /var vs /private/var symlinks).
workspace_relative_path
Normalizes path to a workspace-relative (or standalone crate-relative) POSIX path matching file!() / Span::call_site().file() so AnchorKeys hash identically in nv dev (absolute paths from notify) and the compiled app.