Function codegen

Source
pub fn codegen<P, Q>(
    files_dir: P,
    generated_path: Q,
) -> Result<(), Box<dyn Error>>
where P: AsRef<Path>, Q: AsRef<Path>,
Expand description

Write a file at the location specified by generated_path.

This file should be included with the include! directive into your rust source code. This should be called from the build.rs script in your crate. This will define the variable BUI_BACKEND_CONFIG which should be passed to bui_backend::BuiBackend::new() to configure it correctly. See the bui-demo for example usage.