build(web): restore the wasm build — gate native-only deps off wasm
The web build had bit-rotted: native-only features added since it last compiled pulled crates that don't build for wasm32-unknown-unknown. - printpdf (PDF export / printing) → native-only target; the web build gets stub export_pdf / print_wires. It pulls a wasm-incompatible memchr 1.0.2 via lopdf → nom_locate, and the web has no filesystem. - getrandom 0.3 (via ahash via acadrust) → enable its wasm_js feature and add the matching --cfg getrandom_backend rustflag in .cargo/config.toml. - ocs_plugin_api "host" feature (out-of-process plugin runtime: interprocess, libloading, memmap2, rkyv) → native-only target; the web gets the dependency-free manifest/ribbon contract. The host code was already wasm-gated; only the Cargo wiring pulled it in unconditionally. `trunk build --release` succeeds again. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
8b1e37e0da
commit
44fa9df278
5 changed files with 75 additions and 3 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
|
@ -24,6 +24,7 @@ dependencies = [
|
|||
"env_logger",
|
||||
"flate2",
|
||||
"fontdb",
|
||||
"getrandom 0.3.4",
|
||||
"glam 0.33.0",
|
||||
"iced",
|
||||
"image",
|
||||
|
|
|
|||
Loading…
Reference in a new issue