Thanks to visit codestin.com
Credit goes to lib.rs

1 unstable release

Uses new Rust 2024

0.1.0 Apr 8, 2026

#1088 in WebAssembly


Used in 4 crates (2 directly)

MIT/Apache

165KB
4K SLoC

Web/wasm runner glue for Fret.

On wasm32, this crate re-exports fret-platform-web services used by fret-runtime::Effects and provides DOM-adjacent adapters (cursor, input event mapping, RAF/timers). It intentionally keeps non-wasm builds explicit via a stub module.

For module ownership and “where should this go?” guidance, see crates/fret-runner-web/README.md.

Long-term direction: a dedicated DOM adapter for IME/keyboard fidelity (see ADR 0089/0092).


fret-runner-web

Web/wasm runner glue for Fret.

At the moment, this crate primarily re-exports fret-platform-web services on wasm32 and keeps native builds explicit via a stub error type.

Module ownership map

  • src/lib.rs: cfg-based re-exports.
  • src/native.rs: non-wasm stub types (compile-time explicitness).

Refactor gates

  • Formatting: cargo fmt
  • Build/test: cargo nextest run -p fret-runner-web --no-tests pass

Dependencies

~0–3MB
~54K SLoC