feat(domain): R2.1 Rust contracts of the sheet, report and archive documents
Sheet document v2, report v3 / v2 / identity, migration map, sheet snapshot, branding, PDF labels and archive envelope ported from the Zod schemas with their exact semantics: strict objects where Zod is strict, optional fields absent (never null), nullable fields required, integers as JavaScript numbers, UTF-16 caps, hand-checked patterns, url crate for .url(), lone surrogate escapes read as U+FFFD (L1, owner confirmation pending). Fields in Zod schema order (PDF labels in the engine dictionary order): the curated and legacy sheets, the demo report and the three frozen archive envelopes print byte for byte as their Zod / attachment form. ts-rs types regenerated; plan rev 2 after three plan challenges.
This commit is contained in:
1 parent
3114d67959
commit
ee0700887f
87 files changed
+2657
-148
No files matched your search
+3
-1
@@ -21,7 +21,9 @@ serde = { version = "1.0.229", features = ["derive"] }
|
||||
# float_roundtrip: the default parser is a fast path that can be one ULP off (found by the R0
|
||||
# proof: 1715.4285714285713 came back as 1715.428571428571); JavaScript parses correctly.
|
||||
serde_json = { version = "1.0.154", features = ["preserve_order", "float_roundtrip"] }
|
||||
ts-rs = { version = "12.0", features = ["serde-compat"] }
|
||||
ts-rs = { version = "12.0", features = ["serde-compat", "no-serde-warnings"] }
|
||||
# Zod `.url()` is `new URL()`: the WHATWG parser of the url crate reproduces it (R2 plan P2).
|
||||
url = "2.5.8"
|
||||
# The CLI in docker/rust-builder.Dockerfile must be this exact version.
|
||||
wasm-bindgen = "=0.2.129"
|
||||
image = { version = "0.25.10", default-features = false, features = ["jpeg", "png", "webp"] }
|
||||
|
||||
Reference in new issue
Block a user