pub fn emit_wrangler_toml(
context: &str,
layout: &WorkerLayout,
bindings: &[WorkerBinding],
crons: &[String],
queues: &[String],
addresses: &[String],
flags: &[String],
workers_dev: Option<bool>,
tombstones: &ClassTombstones,
d1_migrations: &D1Migrations,
) -> TomlDocumentExpand description
P6.x cutover slice 2 (#1191, narrowed from #1187): crons/queues arrive
pre-collected, sorted and deduped by the caller (project.rs’s own
emit_wrangler_toml call site) rather than being walked here off
table.services. Both used to match a handler’s cron-schedule kind and a
service’s queue-binding protocol directly, straight off the syntax tree —
this file’s entire raw-syntax footprint, per #1191’s own grounding.
Relocating just these two matches removed wrangler.rs from the
ast_importers probe outright — no bynk_model equivalent exists to route
through instead: nothing builds a project-wide service IR at the call site
(#1191’s Framing), and after #1542’s Slice D2 nothing builds one anywhere.
P7.3 (#1303): builds a TomlDocument rather than writing text directly
— the caller (project.rs) prints it via emitter::toml_doc:: print_toml_document. What gets built, in what order, under what gates,
is unchanged; only the construction shape moved from direct writeln!
into pushing typed blocks. String-escaping moved with it: every value
below is escaped unconditionally by the printer now, not selectively by
this function (emitter/toml_doc.rs’s own module doc has the reasoning).