Skip to main content

Module package

Module package 

Source
Expand description

The generated output as a set of files, and the file operations over it.

A run that emits operations produces a small module tree instead of one file: a root file the consumer mounts, and a companion directory beside it holding one module per concern. The root file keeps its path, so a consumer that already mounts it needs no change, and the root re-exports every child, so every generated name stays where it was.

Structs§

GeneratedFile
One file of a GeneratedPackage.
GeneratedPackage
Everything one generator run produces.

Enums§

PackageDrift
What a comparison of a generated package against the files on disk found.

Functions§

check_package
Compare package with the files on disk and report the first difference.
write_package
Write every file of package, then remove the files an earlier run left in the companion directory that this run does not produce.