Skip to main content

Module yui_codegen

Module yui_codegen 

Source
Expand description

.yui screen files (the screen designer’s format) — regenerating their code (.yog-build/generated/**/*.g.rs, what the code-behind pulls in with yog_api::ui_include!) when one is saved, through yog ui gen — and the same for .yres resource files (resources/<Set>.g.rs, through yog res check).

Structs§

Codegen
One regeneration: the generated file (empty on failure), the failure’s message, and yog’s full output with the folder it ran in — what the Error List reads the file’s errors and warnings from.

Functions§

codegen
Runs yog ui gen <path> in the file’s folder, so a saved screen’s generated foo.g.rs is current without a full build (yog finds the project from the yog.toml above the file). The result carries what yog printed either way — its errors and warnings go to the Error List; Err only when yog couldn’t run at all.