Skip to main content

Crate bynk

Crate bynk 

Source
Expand description

bynk — the Bynk driver.

A thin orchestrator over the bynkc compiler and the Node toolchain: bynk is to bynkc what cargo is to rustc. The compiler stays pure (compile / check / fmt / test); environment orchestration — “is wrangler installed”, “is your machine ready” — lives here (ADR: introduce the bynk driver).

v0.46 ships the first command, doctor, an upfront environment check. The crate is deliberately split into single-concern modules (per ADR 0060):

  • probe — the portable detection primitive (presence + version + provenance), backed by the which crate so it is not Unix-only.
  • compiler — locate bynkc (override → PATH → sibling-of-bynk) and report driver↔compiler version skew.
  • doctor — the capability model, the checks, and the exit-code contract.
  • report — render a doctor::Report as a human table, --format short, or --format json.
  • new — scaffold a new project (offline file-writing; no toolchain).
  • dev — build a project and serve it locally with wrangler dev.

Modules§

cli
The bynk driver command-line interface.
compiler
Locate the bynkc compiler the driver shells, and report driver↔compiler version skew.
dev
bynk dev — build a project and serve it locally in one step.
doctor
bynk doctor — the capability model, the checks, and the exit-code contract.
new
bynk new — scaffold a new project.
probe
The shared detection probe: presence + version + provenance.
report
Render a Report in one of three shapes.

Constants§

DRIVER_VERSION
The driver’s own version, from Cargo. Compared against the resolved bynkc’s version to detect skew (compiler::Skew).