# Size budget (bytes) for the optimized browser payload
# (web/pkg/bdinfo_rs_wasm_bg.wasm, after `wasm-opt -Oz`).
#
# A ceiling, not a target: the gate and CI (wasm.yml) fail if the optimized
# .wasm exceeds it. Current optimized size is ~540,482 B (rustc 1.97.1 +
# wasm-bindgen 0.2.127 + binaryen 132.0.0); the same tree built ~513,498 B under
# wasm-bindgen 0.2.126 + binaryen 131.0.0, so a few tens of kilobytes of the
# figure are toolchain drift rather than code.
#
# The ceiling is 1 MiB, roughly double the current figure. It is deliberately
# loose: a payload of this size is not a cost worth designing around for a tool
# that reads multi-GB disc images, so the budget exists to catch a runaway
# regression - a dependency that pulls in a formatter, a panic path that keeps
# its formatting machinery, a monomorphization blow-up - and not to arbitrate
# ordinary feature growth. Raising it again means something went wrong; find
# that before editing this number.
#
# For reference, what moved the figure so far: the crate started at ~362,471 B.
# Linking the read-only UDF 2.50 reader for `.iso` input took it to ~402,504 B
# (the reader had been dead-code-eliminated before, because nothing called it).
# Giving serde `Serialize` over the disc-model mirror its first caller added
# ~22,290 B, which is what pulls serde-wasm-bindgen into the payload. Taking a
# disc model back IN added ~86,440 B: `Deserialize` over that same tree is the
# larger half of serde, since reading a value needs a name-matching visitor per
# field where writing one needs only a write. Deleting the hand-written JSON
# row serializer and the four exports that fed it took ~2,859 B back off.
# Replacing the scanning calls' positional option tails with one deserialized
# options object added ~5,126 B - one more visitor over four optional fields.
# The live measured-snapshot mirror (four types serialized once per demuxed read
# chunk) added ~4,468 B, measured against the same tree without it: `Serialize`
# alone over small flat records is the cheap half of serde.
1048576
