Skip to main content

Module build

Module build 

Source
Expand description

Candidate builds in generation-specific staging (F-7b R3): each build generation gets its own staging copy of the component inputs, so compiler partials can never overwrite last-good bytes, and the content snapshot is identified by a BLAKE3 digest computed over the copied bytes in deterministic order (constraint 8 — the digest, not timing, identifies a build).

Structs§

Snapshot
One staged content snapshot, ready to build.

Enums§

BuildError
Typed failures of the snapshot/build pipeline. Compiler diagnostics ride Self::GleamBuild verbatim (R4: captured, never summarized away).

Functions§

build_candidate
Runs gleam build in the snapshot’s staging directory and reads both compiled BEAM files from the landed ebin shape.
snapshot_component
Copies component/gleam.toml and component/src/** into the generation’s staging directory and digests the copied content. A leftover directory from a superseded attempt at the same generation is removed first — staging is always a fresh, complete copy.