Skip to main content

emit_projection_wasm

Macro emit_projection_wasm 

macro_rules! emit_projection_wasm {
    ($($name:ident),* $(,)?) => { ... };
}
Expand description

Emits one #[wasm_bindgen_test] per projection rule.

The caller’s crate needs wasm-bindgen-test in its dev-dependencies, gated on cfg(target_arch = "wasm32"); as with the tokio emitter the attribute resolves in the caller’s scope.

This is the one projection emitter that does not call RuleOutcome::report, and the reason is the target rather than taste: println! writes nowhere on wasm32-unknown-unknown — measured, not assumed — so a skip reported through it leaves no record on the only target the two-flavour design exists for. console_log! is what the runner captures. An emitter that called report here would compile, run, pass, and discard every stated reason.

Select it by passing emit = happenstance_testkit::emit_projection_wasm to projection_store_conformance!. The name is promised (CF-41): renaming or removing it is a major release of this crate.