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§
- Classified
File Patch - Classified Tier-1 hot-patch output for one watched
.rsfile. - Watch
Cache - Baselines of every watched
.rsfile, content hashes of watched non-.rsweb assets, and per-path hashes of the last attempted build so failed Tier-2 builds and repeatedForceScancalls don’t loop on unchanged files. - Watch
Snapshot - Pre-build snapshot of watched
.rsfile contents and non-.rsweb asset content hashes so adopting baselines after a Tier-2 build never swallows mid-build edits and never redundantly rebuilds unchanged non-.rsweb assets onForceScan.
Enums§
- File
Diff - Classification of one saved
.rsfile against its cached baseline.
Functions§
- canonicalize_
preserving_ missing - Canonicalizes
path, absolutizing relative paths and falling back to canonicalizing the nearest existing ancestor whenpathdoes not exist yet (e.g. deleted files or macOS/varvs/private/varsymlinks). - workspace_
relative_ path - Normalizes
pathto a workspace-relative (or standalone crate-relative) POSIX path matchingfile!()/Span::call_site().file()soAnchorKeys hash identically innv dev(absolute paths fromnotify) and the compiled app.