# Workspace-level Cargo configuration (RUST_ARCHITECTURE_REVIEW III.3, III.5). [target.wasm32-unknown-unknown] # The shadow stack of the browser module, set explicitly (the toolchain default is also # 1 MiB). packages/core-wasm/tests/panic.test.ts proves that exhausting it traps. # Linear memory ceiling (R4, OD-3 (a)): a runaway allocation traps at 1 GiB (the instance is # poisoned and re-created by CoreRuntime) instead of growing until the OS kills the tab. Far # above the needs measured in RUST.md ยง10 (import worst case under the value cap, the export # of a report at the collection caps); packages/core-wasm/tests/pdf-import.budget.test.ts # proves the trap on the proofs build. rustflags = ["-C", "link-arg=-zstack-size=1048576", "-C", "link-arg=--max-memory=1073741824"] [env] # ts-rs writes the TypeScript types of the contracts here on `cargo test -p faunosteo-core --features ts`. TS_RS_EXPORT_DIR = { value = "packages/core-wasm/types", relative = true }