Files
faunosteo/crates/core/src/domain/archive/mod.rs
T
bchanot 21906c4358 feat(domain): R2.2 report migration, rebase, sheet snapshot and layered archive reading in Rust; draft restore and archive import operations
migrateReportV2ToV3 / readReportDocument (version read on the raw value,
JS truthiness kept, a malformed mapped path still fails the read),
rebaseReportOnSheet (??= labels, archived names first-match),
buildSheetSnapshot / assertSnapshot (raw depth, shape, caps in UTF-16 and
UTF-8, integrity), readArchiveDocument (layered: report first, wrapper,
snapshot gate, sheet invariant, unsupported_envelope origin quirk).
Checked against 84 cases frozen from the TypeScript and 765 Zod verdicts
(one declared difference: L1, a lone surrogate reads as U+FFFD), the
ported report and archive suites and the 612 legacy leaves. Facade:
draft.restore (content kinds invalid / unsupported_version, rebase_failed
never a content kind), archive.import (incompatible_version with found,
no_attachment), archive.snapshot.
2026-10-14 00:28:02 +02:00

16 lines
456 B
Rust

//! Archive contracts: the sheet snapshot, the branding, the PDF labels and the envelope.
pub mod branding;
pub mod envelope;
pub mod labels;
pub mod read;
pub mod snapshot;
pub mod snapshot_rules;
pub use branding::*;
pub use envelope::*;
pub use labels::*;
pub use read::{ArchiveOrigin, ArchiveReadOutcome, parse_envelope, read_archive_document};
pub use snapshot::*;
pub use snapshot_rules::{SnapshotRejection, assert_snapshot, build_sheet_snapshot};