Expand description
The compile command body, run by bynk compile
(D2/E1, #2998): before this, only bynk had it, so bynk compile had to
start a bynk process. Parameterised by the program name that prefixes
messages, like crate::run_check and crate::run_fmt.
Structs§
- Build
Args - What a
buildrun was asked to do: the flags given, over[build]. - Compile
Args - What a
compilerun was asked to do.
Enums§
- CliPlatform
- v0.17: the deploy platform that selects the
bynksurface binding. Distinct fromCliTarget(the emit topology). v0.18 addsnode. - CliProfile
--profile: a named build profile (#3054). It chooses the defaults a[profile.<name>]table can override; today that iscontractsonly.- CliTarget
--target: the build topology.- Emit
Format - v0.108 (in-browser track, slice 1): the emitted artefact language.
ts(the default and primary output) writes the typed TypeScript modules;jswrites the same modules with their types stripped — an emit-then-strip JavaScript artefact (ADR 0137) runnable with notscin the loop. Orthogonal to--target(topology) and--platform(binding).
Functions§
- profile_
contracts - #3107: whether a build under
profilecarries the contract guard, the one rule every verb that builds shares:[profile.<name>] contracts, else the profile’s default (devon,releaseoff).bynk buildalso takes a profile from its flag;testis alwaysdev,deployalwaysrelease. - project_
contracts profile_contractsfor the project atroot, reading itsbynk.toml.- refuse_
release_ contracts - #3107:
deployalways buildsrelease, and a deployment never carries contract checks (DECISION J of v0.115), so[profile.release] contracts = trueis refused for it, naming the table. - refuse_
undeployable_ project - What a deployment refuses before it prepares anything: contract checks in the
release profile (
refuse_release_contracts). A[deploy.workers]group is not one. - run_
build - Run
build(#3054): resolve each setting as flag, else[build], else the built-in default, then runrun_compile.compileitself never reads[build]. - run_
compile - Run
compile.progprefixes the messages ("bynk").