Expand description
The shareable-unit set (packaging slice 1, #2207; track D1): a package’s
[package] exports lists the units it shares, and each must be a commons
or an adapter the project declares. A context is never shareable — it is a
deployment unit, whose Worker, secrets and deploy state belong to the
project that deploys it.
bynk.toml’s shape is bynk-project’s to check; whether each entry names
a shareable unit needs the project’s units, so it is checked here, once
they are known, and attributed to the manifest like the [unstable]
diagnostics (crate::stability::MANIFEST). The build and the editor read
[package] the same way ([bynk_project::read_package_config]).
Constants§
- EXPORT_
CONTEXT - The error for an
exportsentry naming a context. - EXPORT_
UNKNOWN - The error for an
exportsentry naming no unit the project declares.
Functions§
- check_
exports - The diagnostics for
exportsagainstkinds. A first-party unit is never the project’s own, so it counts as undeclared. - manifest_
diagnostics - The
[package] exportsdiagnostics for the project atproject_root, against its units’kinds(asphase_groupbuilds them). No project root, no[package], or noexportslist is nothing to check.