Function bui_backend_codegen::codegen
[−]
[src]
pub fn codegen<P, Q>(files_dir: P, generated_path: Q) -> Result<(), Box<Error>> where
P: AsRef<Path>,
Q: AsRef<Path>,
Write a file generated_path
which would should include
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 demo_js
and demo_elm
for example usage.