mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 23:08:05 +08:00
* Add document-format crate * Adapt document-format to merged graph-storage and consolidate errors * Fix resource write ordering, codec error masking, and export docs * Remove document-format RFC; tracked in a dedicated PR * Restructure document-format into gdd/persist/export/resource modules Split the 963-line lib.rs by responsibility: persist path into persist.rs, resource I/O into resource.rs, export engine into export.rs. Rename the GddV1 layout struct to GddV1Layout and add a GddV1 = Gdd<GddV1Layout> alias. * Feature-split document-format and graph-storage for minimal builds * Address PR review: O(1) history-delta lookup and no-default-features test build * Address PR review: propagate apply_hot_op persist error and assert resource hash * Make decompression from archive streaming * Share archive export body between export and export_to_bytes * Review cleanup * Export documents with un-retired hot ops losslessly * Persist last_broadcast_rev in session.json, drop unused last_retired_at * Move peer_id from manifest to session.json * Rename gesture to interaction in document-format storage layer
43 lines
1.0 KiB
Rust
43 lines
1.0 KiB
Rust
pub use graphene_resource::{ResourceHash, ResourceId};
|
|
|
|
pub mod attributes;
|
|
pub mod crdt;
|
|
pub mod delta;
|
|
pub mod document;
|
|
pub mod history;
|
|
pub mod ids;
|
|
pub mod model;
|
|
pub mod registry;
|
|
pub mod resources;
|
|
pub mod session;
|
|
|
|
#[cfg(any(feature = "conversion", test))]
|
|
pub mod from_runtime;
|
|
#[cfg(any(feature = "conversion", test))]
|
|
pub mod metadata_source;
|
|
#[cfg(any(feature = "conversion", test))]
|
|
pub mod to_runtime;
|
|
|
|
pub use attributes::*;
|
|
pub use crdt::*;
|
|
pub use document::*;
|
|
pub use history::History;
|
|
pub use ids::*;
|
|
pub use model::*;
|
|
pub use registry::*;
|
|
pub use resources::*;
|
|
pub use session::*;
|
|
|
|
#[cfg(any(feature = "conversion", test))]
|
|
pub use from_runtime::{RuntimeConversion, decode_declaration, encode_declaration};
|
|
#[cfg(any(feature = "conversion", test))]
|
|
pub use metadata_source::{InputMetadataEntry, NetworkMetadataEntry, NoMetadata, NodeMetadataEntry, NodeMetadataSource, Position};
|
|
#[cfg(any(feature = "conversion", test))]
|
|
pub use to_runtime::Declarations;
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
mod crdt;
|
|
mod round_trip;
|
|
}
|