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§
- Generated
File - One file of a
GeneratedPackage. - Generated
Package - Everything one generator run produces.
Enums§
- Package
Drift - What a comparison of a generated package against the files on disk found.
Functions§
- check_
package - Compare
packagewith 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.