Skip to main content

Module worker_groups

Module worker_groups 

Source
Expand description

Worker groups against the project’s units (#3562, slice G1).

bynk.toml’s [deploy.workers.<key>] shape, and what needs no project model, is bynk-project’s to check ([bynk_project::worker_groups]). Whether each member is a context the project declares, and whether a group’s key or name collides with the Worker of a context in no group, needs the project’s units, so it is checked here once they are known, and attributed to the manifest like the [package] exports diagnostics (crate::exports). The build and the editor read the table the same way.

Functions§

check_groups
The diagnostics for groups against kinds. A first-party unit is never the project’s own, so it counts as undeclared.
manifest_diagnostics
The [deploy.workers] diagnostics for the project at project_root, against its units’ kinds (as phase_group builds them). No project root, no table, or a malformed one (its shape is reported with the rest of the manifest) is nothing to check here.