feat(anatomy): R5.2 legacy importer in Rust (curation feature, import-equine --check/--out), Prettier JSON and table layout, JS semantics; parity oracles frozen from the TypeScript

This commit is contained in:
bchanot committed 2026-10-22 21:14:45 +02:00
1 parent aed6b1e300
commit 03bdb5eaa0
32 files changed
+4248

No files matched your search

+19
View File
@@ -22,6 +22,9 @@ pdf-write = ["pdf-read"]
# The archive check tool (R4.7, plan §B.1.7): `pdf::compare` and the `report-compare` binary,
# the one file of the crate that reads the file system. Never enabled by the wasm facade.
cli = ["pdf-read", "pdf-write"]
# The anatomical pipeline (R5): legacy importer, curation, generated files and their
# formatting, the `import-equine` tool. Never enabled by the wasm facade or the worker.
curation = ["dep:sha2", "dep:icu_normalizer"]
[dependencies]
serde.workspace = true
@@ -31,12 +34,19 @@ roxmltree.workspace = true
zmij.workspace = true
ts-rs = { workspace = true, optional = true }
miniz_oxide = { workspace = true, optional = true }
sha2 = { workspace = true, optional = true }
icu_normalizer = { workspace = true, optional = true }
[[bin]]
name = "report-compare"
path = "src/bin/report_compare.rs"
required-features = ["cli"]
[[bin]]
name = "import-equine"
path = "src/bin/import_equine.rs"
required-features = ["curation"]
[dev-dependencies]
# Reads the PDFs the tests compare (the R3 fixtures and the R4 output): objects, streams,
# annotations; never in the library.
@@ -99,3 +109,12 @@ required-features = ["cli"]
[lints]
workspace = true
# The pipeline suites (R5) compile only with the feature.
[[test]]
name = "curation_format"
required-features = ["curation"]
[[test]]
name = "curation_legacy"
required-features = ["curation"]