Skip to main content

Module workers_emit

Module workers_emit 

Source
Expand description

The per-Worker emission (1B.2d, #4028 Decision F): each context’s compose.ts, entry point, events fan-out class, contract and secrets manifests, and its Worker’s wrangler.toml and sidecars, rendered from the binding model the build derived once (WorkerBindings). The driver builds a WorkersEmit from the checked project and its options and calls WorkersEmit::emit_all; it decides nothing about which bindings a Worker has, or where it is.

Structs§

WorkersEmit
Everything a context’s Workers emit reads from the checked project and the build’s options (#3562, G2b): the same inputs the driver’s emit loop used as locals, gathered so WorkersEmit::emit_all produces every context’s files and the driver only supplies them.

Functions§

stage_binding_files
The files a Worker’s bindings stage beside its wrangler.toml: P4b (#2608) each D1 database’s migrations, under the migrations_dir the config names, and Hyperdrive H5 (#3322) which Hyperdrive bindings are MySQL and their TLS modes, for bynk deploy (a Worker with no MySql instance gets no file).