feat: track fine-grained revisions of font, registry, entry, and vfs (#1192)

* feat: set flag to indicate whether we are compiling files

g1

dev: stateless compile

dev: vfs revise apis

g1

feat: bump revision on state changes

feat: track font and package changes

dev: some cases that can change state of cache

changes

* feat: implement shared source cache

* fix: take db state

* dev: update take state location

* fix: example
This commit is contained in:
Myriad-Dreamin 2025-01-19 18:23:41 +08:00 committed by GitHub
parent 8481b77e3c
commit 1f01ec1f6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 841 additions and 484 deletions

View file

@ -25,7 +25,7 @@ pub(crate) fn convert_docs(ctx: &SharedContext, content: &str) -> StrResult<EcoS
});
w.map_shadow_by_id(w.main(), Bytes::from(content.as_bytes().to_owned()))?;
// todo: bad performance
w.source_db.take_state();
w.take_db();
let conv = typlite::Typlite::new(Arc::new(w))
.with_library(DOCS_LIB.clone())