Reuse valid checkpoints across auxiliary file changes

This commit is contained in:
gloamxun committed 2026-11-20 15:17:28 +08:00
1 parent 3a3913a385
commit e4a265ca6c
5 files changed
+233 -111

No files matched your search

+5 -1
View File
@@ -1,6 +1,6 @@
//! Capture and verify the native host calls made by an entry prefix.
use super::*;
use std::fmt::Debug;
use std::{collections::BTreeSet, fmt::Debug};
#[cfg(test)]
use std::{fs, path::Path};
#[cfg(test)]
@@ -42,6 +42,10 @@ impl<'a> RecordingHost<'a> {
(count < MAX_REPLAY_CALLS).then(|| (self.files.resource_trace(), count))
}
pub(super) fn generated_outputs(&self) -> &BTreeSet<PathBuf> {
self.files.generated_outputs()
}
pub(super) fn into_calls(self) -> Option<Vec<Call>> {
self.calls
}