Skip to main content

Module macros

Module macros 

Source
Expand description

Declarative XML macro surface.

The xml! MVP is syntax sugar over builder and component; it does not parse or serialize XML by itself. It supports XML elements, literal and expression attributes, text and expression children, comments, namespace declarations, prefixed names, and explicit Rust components written as <{ComponentPath}>.

Current limits are intentional: component props must be simple Rust field identifiers, namespace declarations must be string literals, text token spacing follows Rust tokenization for raw text, and compile-fail coverage is limited to the MVP parser/codegen errors. Use normal Rust interpolation for custom component signatures or more complex values.

Macros§

xml
Declarative XML macro entry point.

Structs§

XmlTemplate
Runtime output produced by xml!.