Skip to main content

codegen

Function codegen 

Source
pub fn codegen(path: &str) -> Result<Codegen, String>
Expand description

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.