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 failure’s message, and what yog found — each record’s file relative to root, the project’s folder.

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 found either way — its errors and warnings go to the Error List; Err only when yog couldn’t run at all.