export_pdf_for_test on the proofs build (ExportInput JSON + base64 rasters): the 14 O2 runs give the native digests through wasm; the frozen O11 scanner reads every R4 PDF and the N-1 Zod readers accept its envelope; a stripped R4 PDF answers attachment_stripped; the TypeScript engine reads the R4 PDFs back to the R3 outcome; E2 size ≤ R3 + 5 %. Page resources list the images the page draws (listing every embed cost 9 MB on CAP). Node, stub rasters, TS → Rust: demo 198 → 36 ms, L 772 → 57 ms, CAP 5.7 s → 0.22 s; files 236 KB, 386 KB, 1.6 MB against 243 KB, 463 KB, 2.2 MB. Module with the writer linked (proofs build): 531.6 KB gzip; shipped unchanged at 426 KB until R4.6 links it.
28 lines
833 B
TOML
28 lines
833 B
TOML
[package]
|
|
name = "faunosteo-wasm"
|
|
description = "Browser facade of the Faunosteo core (wasm-bindgen), built into packages/core-wasm/pkg"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
publish.workspace = true
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
path = "src/lib.rs"
|
|
|
|
[features]
|
|
default = []
|
|
# The R0 trap proofs (panic_for_test, recurse_for_test): built for the proofs, never for the
|
|
# module the application ships (scripts/wasm-build.sh passes it until R2 wires the real loader).
|
|
proofs = ["dep:serde_json"]
|
|
|
|
[dependencies]
|
|
faunosteo-core = { path = "../core", features = ["pdf-read", "pdf-write"] }
|
|
wasm-bindgen.workspace = true
|
|
# The proofs build reads the test rasters' JSON (never shipped).
|
|
serde_json = { workspace = true, optional = true }
|
|
|
|
[lints]
|
|
workspace = true
|