Skip to main content

Module runner

Module runner 

Source
Expand description

Running a formatter, with the failure modes spelled out.

Blocking by design. The caller decides where this runs — the host puts it on spawn_blocking, never the actor or UI thread — and keeping the spawn itself synchronous makes it testable without a runtime.

Enums§

FormatError
Why a formatter run produced no edits.

Constants§

FORMAT_TIMEOUT
Wall-clock ceiling for one formatter run.

Functions§

run
Run spec over input, returning the formatted text.