Expand description
§Tessera Macros
This crate provides procedural macros for the Tessera UI framework.
The main export is the #[tessera] attribute macro, which transforms
regular Rust functions into Tessera UI components.
§Usage
ⓘ
use tessera_ui::tessera;
#[tessera]
fn my_component() {
// Component logic here
// The macro provides access to `measure`, `input_handler` and `on_minimize` functions
}The #[tessera] macro automatically:
- Registers the function as a component in the Tessera component tree
- Injects
measure,input_handlerandon_minimizefunctions into the component scope - Handles component tree management (adding/removing nodes)
- Provides error safety by wrapping the function body