Builder

The builder is a component that fetches jobs from the backend, builds them using Docker, and pushes the resulting binaries back into the backend. This can be replicated as needed for parallel building.

Interactions

graph BT
    backend[Backend]
    builder[Builder]
    builder --> backend

    click backend "./backend.html"

The builder connects to the backend using a WebSocket. This is the only service dependency it has.

Dependencies

graph BT
    builder[buildsrs_builder]
    protocol[buildsrs_protocol]

    builder --> protocol

    click protocol "/rustdoc/buildsrs_protocol"
    click builder "/rustdoc/buildsrs_builder"

The builder is implemented in the buildsrs_builder crate. It depends on the buildsrs_protocol crate, which defines the protocol it uses to interact with the backend.

Features

NameDescription
dockerEnables the Docker strategy
optionsCommand-line options parsing