[K4] Projektdatei-Format (Parser, Migration, Serialisierung) in Rust (project_format.rs); projectFormat.ts nur noch Fassade
This commit is contained in:
1 parent
96a5c219ec
commit
e02c01d3a5
9 files changed
+317
-120
No files matched your search
@@ -107,6 +107,11 @@ impl Document {
|
||||
}
|
||||
}
|
||||
|
||||
/// Datei-Text des Projekts (`serializeProject`): Formatversion vorn, Einrückung 2.
|
||||
pub fn serialize(&self) -> String {
|
||||
crate::project_format::serialize_project(&self.root)
|
||||
}
|
||||
|
||||
pub fn to_json(&self) -> String {
|
||||
serde_json::to_string(&self.root).unwrap_or_default()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user