Skip to main content

Crate xtask

Crate xtask 

Source
Expand description

Library surface of the xtask helper crate: the workspace root and the two command builders every task runs through, plus the generators.

Modules§

autogen
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.

Functions§

cargo
command
A command rooted at the workspace, so it runs from the right directory regardless of where cargo xtask was invoked.
workspace_root
The workspace root. xtask lives one level below it.