Share scanned source storage across native publications

This commit is contained in:
gloamxun committed 2026-11-28 23:25:29 +08:00
1 parent c09d545da6
commit d6ab5a025f
6 files changed
+46 -10

No files matched your search

+3 -2
View File
@@ -654,7 +654,8 @@ pub struct Execution {
/// Physical scanner position, independent of macro definition/call spans.
pub input_position: Option<(usize, usize)>,
pub paragraph_mode: ParagraphMode,
pub sources: Vec<SourceFile>,
/// Physical and generated inputs in span-source order.
pub sources: Vec<std::sync::Arc<SourceFile>>,
/// Source IDs backed by the bytes delivered through an input stream.
#[serde(default)]
pub stream_sources: BTreeSet<usize>,
@@ -697,7 +698,7 @@ pub struct Error {
/// not a resumable executor checkpoint or a successful document.
#[derive(Clone, Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ExecutionEvidence {
pub sources: Vec<SourceFile>,
pub sources: Vec<std::sync::Arc<SourceFile>>,
pub source_versions: Vec<SourceVersion>,
pub stream_sources: BTreeSet<usize>,
pub generated_inputs: std::collections::BTreeMap<usize, GeneratedInput>,