Expand description
The output ledger: every path one generator run writes, and the sweep that deletes the generated files it did not.
The generator overwrites its outputs in place. That leaves a hole. When a
schema leaves the schema set, or a message renames a common struct, the
file from the previous run stays on disk. It is still tracked and still
unchanged, so git status reports nothing and the codegen drift CI job
passes over a generated tree that no longer matches the schemas.
Written closes the hole. Each write records its path. Written::prune
then walks the output directories and removes every generated file that the
run did not write.
Structs§
- Written
- The set of paths one generator run wrote.
Enums§
- Write
Error - An error from writing or pruning a generated file.