1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Pins that the suspense-marker vocabulary in `krab_core::render_stream` is
//! reachable from `wasm32`.
//!
//! This is a contract test, not a behaviour test — the parser has its own unit
//! tests on the host. What only a `wasm32` build can prove is that the module
//! still *exports* it there. The 0.5.0 release first gated all of
//! `render_stream` off `wasm32` to keep `ChunkedStreamWriter`'s `Instant` out of
//! the browser bundle, and in doing so removed `is_finalized_ssr_snapshot` —
//! pure string parsing that had compiled and run on `wasm32` since it existed —
//! while the release notes said nothing that worked could break. The gate now
//! sits on the writer items inside the module.
//!
//! A future "tidy-up" that moves it back to the `pub mod` fails this suite
//! rather than shipping the same break twice. Nothing in `krab_client` itself
//! calls the parser, so without this file the linker would drop it and no gate
//! would notice. (`SuspenseMarker`, deprecated in 0.5.0, was removed in 0.6.0;
//! its parser is now private behind `is_finalized_ssr_snapshot`.)
//!
//! Run with the same command as `hydration_browser`; see that file's docs.
use ;
use ;
wasm_bindgen_test_configure!;