Expand description
oxiforge — YAML-to-Rust code generator for oxivgl LVGL UIs.
Three-stage pipeline: parse → validate → codegen.
Use generate_from_str for in-memory generation or generate from
build.rs.
Re-exports§
pub use error::OxiforgeError;
Modules§
- codegen
- Code generation: emit Rust source calling the oxivgl API from a validated
UiDoc. - error
- Error types returned by all pipeline stages. All error types returned by the oxiforge pipeline.
- hints
- Fuzzy “did you mean?” hints for unknown YAML keys. Fuzzy “did you mean?” hints for unknown YAML keys.
- model
- IR model types — the YAML schema as Rust structs/enums. IR model types for the oxiforge YAML language.
- parse
- YAML parsing into the IR model.
- validate
- Semantic validation (duplicate IDs, undefined style/gradient refs).
Functions§
- generate
- Parse + validate + generate from YAML file, write .rs to out_dir. Intended for use in build.rs.
- generate_
from_ str - Parse + validate + generate Rust code from YAML string.