Skip to main content

Module autogen

Module autogen 

Source
Expand description

Generators for synthetic test documents, invoked as cargo xtask autogen <command>. Output is JSON (blockworx’s document format), or a .bwx.zip container the web shell’s File ▸ Import takes; the scene is built by blockworx_doc::fixtures::scale, so the file written here and the scene the editor’s tests lower in-process cannot drift apart. See docs/json-format.md for the format.

Structs§

PackArgs
ScaleArgs

Enums§

AutogenCmd
Form 🔒
What a destination is written as, told by its extension.

Functions§

archive 🔒
document as a packed container: one seeded rev creating all of it, and its projection beside it.
container_name 🔒
The container an archive at output carries, named as the web shell’s import names it: scale.bwx.zip carries scale.bwx.
pack 🔒
run
scale 🔒
settled 🔒
document with its wires’ corners stored, as a document the editor saved carries them — without them, opening it routes every wire.
write 🔒