summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorMicha White <botahamec@outlook.com>2025-09-30 11:50:13 -0400
committerMicha White <botahamec@outlook.com>2025-09-30 11:50:13 -0400
commit1dd18cdb4c9e537993cef42dd6bb7c040b9ca232 (patch)
tree0d24adbf2b1f68339b5ca89afd5aea8a97f64ab9 /src/lib.rs
parentc3163b60ab27606c04f808792cb3dbb55ab91a67 (diff)
Create pristine
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index b7994d3..e854a9d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -8,6 +8,7 @@ use std::time::Instant;
use serde::{Deserialize, Serialize};
+mod calculation;
mod object;
mod workarea;
@@ -48,9 +49,10 @@ struct Patch {
id: PatchId,
authors: Vec<ContributorId>,
recorder: ContributorId,
+ dependencies: Vec<PatchId>,
metadata: HashMap<String, String>,
affected_files: Vec<FileId>,
- contents: String,
+ contents: Vec<u8>,
}
#[derive(Debug, Clone, Deserialize, Serialize)]
@@ -58,7 +60,7 @@ struct FileInfo {
id: FileId,
root_span: SpanNodeId,
name_changes: Vec<(PatchId, FilenameOperation)>,
- spans: Vec<SpanNode>,
+ spans: HashMap<SpanNodeId, SpanNode>,
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]