feat(domain): R4.2 scaffold of the pdf reader module (feature pdf-read, miniz_oxide)
Module layout of plan §B.1.1 for the reader (read/{scan,strings,stamp,inflate,probe},
json_js), shared constants and types, index_of; feature-gated test targets; the wasm
facade enables the feature; rust-check runs the gated clippy and tests.
This commit is contained in:
1 parent
c6bf175b61
commit
21d34fb9a7
18 files changed
+166
-1
No files matched your search
@@ -14,6 +14,9 @@ path = "src/lib.rs"
|
||||
default = []
|
||||
# Exports the TypeScript types of the contracts (ts-rs) on `cargo test -p faunosteo-core --features ts`.
|
||||
ts = ["dep:ts-rs"]
|
||||
# The PDF reader (R4, plan §B.1.2): byte scan, inflation, attachment probe, import. The wasm
|
||||
# facade enables it; the worker never does.
|
||||
pdf-read = ["dep:miniz_oxide"]
|
||||
|
||||
[dependencies]
|
||||
serde.workspace = true
|
||||
@@ -21,6 +24,28 @@ serde_json.workspace = true
|
||||
url.workspace = true
|
||||
roxmltree.workspace = true
|
||||
ts-rs = { workspace = true, optional = true }
|
||||
miniz_oxide = { workspace = true, optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
# Digests of the frozen R4 oracles (bytes and JSON texts the TypeScript recorded as sha256).
|
||||
sha2.workspace = true
|
||||
|
||||
# The R4 reader suites compile only with the feature (cargo skips them otherwise).
|
||||
[[test]]
|
||||
name = "pdf_scan"
|
||||
required-features = ["pdf-read"]
|
||||
|
||||
[[test]]
|
||||
name = "pdf_inflate"
|
||||
required-features = ["pdf-read"]
|
||||
|
||||
[[test]]
|
||||
name = "pdf_json_js"
|
||||
required-features = ["pdf-read"]
|
||||
|
||||
[[test]]
|
||||
name = "pdf_import"
|
||||
required-features = ["pdf-read"]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
Reference in new issue
Block a user