Expand description
Multi-language code generation backends (Rust, C++, Python). Multi-language code generation backends for parsed CSS.
The kernel of a future “compile UI to standalone project” feature exposed by
the azul-dll debug HTTP server: a parsed Css is fed to
a [CodegenBackend] implementation, which returns a complete source string
plus auxiliary files (e.g. Cargo.toml) for a target language.
Today only [rust::RustBackend] is implemented; [cpp] and [python] hold
stub backends so the public API stays stable as new languages come online.
Modules§
- cpp
- C++ backend stub.
- format
- Generates const-compatible Rust source code from parsed CSS values.
- python
- Python backend stub.
- rust
- Rust source-code emitter for parsed CSS.
Structs§
- Generated
File - One emitted source artifact (e.g.
src/main.rs,Cargo.toml).
Traits§
- Codegen
Backend - Pluggable code-generation strategy. Each backend turns a parsed
Cssinto a list of files that, taken together, form a buildable standalone project.
Functions§
- backend_
for - Look up a backend by its
CodegenBackend::langidentifier.