pub fn compile_once(
project_root: &Path,
build_dir: &Path,
schema_registry: bool,
) -> boolExpand description
One compile of the project into build_dir, in-process, on the same rooting
rule as bynk compile <project_root> (#524, via
bynk_driver::project_options). Returns false on failure with the
diagnostics already rendered.
schema_registry (#980): true for the real bynk dev/bynk deploy
call sites — otherwise a deploy could ship a schemaVersion computed
purely from @schema(N) annotations, diverging from what bynk compile
would have shipped for the same source (the write is a no-op when the
tree is already up to date). false for
compile_once_warnings_behaviour.rs, the only other caller: it compiles a
committed repo fixture in place, the same hazard
bynk-tests/tests/e2e.rs’s in-place fixtures have — an unconditional write
would leave a real bynk.schema.lock in the tree on every test run.