macro_rules! ui_include {
($name:literal) => { ... };
}Expand description
Pulls a .yui screen’s generated code into the current module — the
code-behind’s half of src/<name>.yui:
ⓘ
// src/mod_list.rs, next to src/mod_list.yui
yog_api::ui_include!("mod_list");<name> is the .yui file’s path under src/ without the extension
("screens/options" for src/screens/options.yui). yog build,
yog check and yog ui gen write the code to
.yog-build/generated/<name>.g.rs (the build crate’s own directory,
CARGO_MANIFEST_DIR), so it’s never committed and never stale.