Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Under the Hood

This chapter is for the curious, and for anyone who wants to work on buildl itself. It explains how the pieces you have used fit together, why they are shaped the way they are, and, just as importantly, what buildl can and cannot promise.

You do not need any of it to use buildl.

SectionWhat it covers
Declare, Then Executethe five phases of a build, the value each hands to the next, and the scheduler
Crash Safety and the Storethe life of one action, and why a build stopped half way never leaves a broken cache
Five Crates, Ports and Adaptershow the code is split, and the rules that keep the logic of a build testable
Errorshow a failure is classified, and how that becomes an exit code
Determinism Rulesthe engineering rules that keep the same inputs giving the same bytes
Decision Recordseach choice that was settled, with its reason
Testing Layerswhich kind of test lives where
Where buildl Sitsbuildl placed among other build systems, in the terms of build-system theory
What buildl Can and Cannot Promisewhat is out of scope, and what each isolation tier does not guarantee

The pages name real types, modules and files. Where an older design note and the code disagree, these pages follow the code.