Enable automatic native checkpoints and browser preview

This commit is contained in:
gloamxun committed 2026-11-19 10:05:41 +08:00
1 parent bb1a166c4c
commit 06463399bb
10 files changed
+877 -92

No files matched your search

@@ -169,22 +169,19 @@ impl RevisionJob {
self.finish_execution(executed, files)
}
/// Capture a possible entry continuation while executing the full revision.
pub fn run_capturing_entry<F: SourceProvider, H>(
/// Capture selected entry continuations while running the full revision.
pub fn run_capturing_entries<F: SourceProvider, S>(
self,
executor: Executor,
source: SourceFile,
files: &mut F,
minimum_frontier: usize,
capture_host: impl FnOnce(&mut F) -> H,
) -> (
Result<Arc<RevisionExecution>, RevisionFailure>,
Option<(EntryCheckpoint, H)>,
) {
let (executed, captured) = executor
select: impl FnMut(usize, usize) -> Option<S>,
capture: impl FnMut(S, EntryCheckpoint, &mut F),
) -> Result<Arc<RevisionExecution>, RevisionFailure> {
let executed = executor
.with_cancellation(self.cancellation.clone())
.run_capturing_entry(source, files, minimum_frontier, capture_host);
(self.finish_execution(executed, files), captured)
.run_capturing_entries(source, files, select, capture);
self.finish_execution(executed, files)
}
/// Resume after the host has validated prefix dependencies and replayed