forked from 1b-agent/opencadstudio-upstream
Reading a drawing by path is gated off on wasm, and two features added since 0.9.3 call it unconditionally: importing a drawing as a block, and taking layer standards from one. Both compile into the web build, so the web bundle stopped building and the v0.9.4 Pages deploy failed. Neither feature can work in the browser — a file arrives through the page, not from a filesystem the app can open — so the fix is not to make them work but to let them say so. `load_file` now exists on wasm and returns that as its error, which both callers already surface. Keeping the signature means neither has to know that the web has no files, and the next feature that reads a second drawing will not break the bundle either. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>