Skip to main content

Crate bynk_under_test

Crate bynk_under_test 

Source

EnumsΒ§

Prepared πŸ”’
How a command goes on after preparing its dependencies (#3274).

ConstantsΒ§

STACK_BYTES πŸ”’
The stack the driver runs on. clap builds the whole command tree while parsing, which in a debug build takes most of a 1 MiB main-thread stack (the Windows default); every subcommand added pushes it nearer the edge, so the real main runs on a thread with room to spare.

FunctionsΒ§

account_result πŸ”’
account_target πŸ”’
#2378: an account command’s registry, from --registry and --path.
dev_format πŸ”’
#2240: resolve, fetch and lock the dependencies of the project holding input before a command compiles it. Prints the failure and returns false when it can’t; a single file outside any project needs nothing. bynk dev’s output format: --trace-events writes events, so it implies --format json (#3580).
fetch_json πŸ”’
bynk fetch --format json (#2472): as fetch, with the outcome as one JSON document on stdout. The human notices stay on stderr.
find_project_root πŸ”’
Walk up from start for the nearest bynk.toml (the project root).
in_bynk_repo πŸ”’
Are we inside the Bynk source repo? Gates the contributor build capability. Identified by the workspace markers bynk-driver/Cargo.toml and design/decisions in some ancestor.
main πŸ”’
parse_cli πŸ”’
Parse the arguments, and set the process-wide --quiet and --color. clap renders its help and errors while it parses, so it is told the --color choice ahead of the parse.
prepare πŸ”’
prepare_each πŸ”’
#3274: prepare, or, for --each over a manifest-less directory of projects, each of its projects in turn: every one is its own lock root, as when it is run alone. One that fails to prepare is named and does not stop the others, so every project still runs and the run fails at the end. An --each that is not an implicit workspace (a project, a workspace root, a file, a directory that is refused) prepares nothing of its own: the command reports what is wrong with the flag, with no fetching or lock writes first.
prepare_offering_approval πŸ”’
#2296: prepare for the commands that exist to change the lock (add, fetch, update): afterwards, offer to approve what now awaits approval.
project_root πŸ”’
Prepare the project’s dependencies and find its root, or say why not: the start of every command that reads a project’s checked model (openapi, client).
refuse_workspace_root πŸ”’
#2207 (decision C): dev and deploy run one project, and a workspace root isn’t one. Says so and returns true when root is a workspace root.
report_prepared πŸ”’
run πŸ”’
run_build_command πŸ”’
bynk build, then the client when [build.client] asks for one (#3508).
run_check πŸ”’
bynk check (#487): type-check in-process via the linked pipeline.
run_conformance πŸ”’
#2311: bynk registry conformance β€” the report, and a failure when any check failed (bynk.registry.nonconformant).
run_deploy πŸ”’
run_dev πŸ”’
run_dev_sub πŸ”’
bynk dev inspect … (#3581): read a running session’s agents.
run_doctor πŸ”’
run_eval πŸ”’
bynk eval: bring the project’s dependencies up to date, then evaluate.
run_fetch πŸ”’
bynk fetch: the lock file, as JSON when asked.
run_fmt πŸ”’
bynk fmt (#487): format in-process via bynk-fmt.
run_org πŸ”’
#2378: bynk org.
run_registry πŸ”’
#2274: bynk registry init|add|yank.
run_tail πŸ”’
run_tail_command πŸ”’
bynk tail: prepare the project, then stream the deployed Worker’s logs.
run_test πŸ”’
bynk test (#487, #2998): run the project’s tests in-process.