Skip to main content

Crate teksilo_macros

Crate teksilo_macros 

Source
Expand description

The teksu! DSL proc-macro for Teksilo widget trees.

See engineering/docs/teksu-language-spec-v3.md for the surface language. This crate implements a one-to-one syntactic transform from the DSL to Teksilo V2 builder calls. The macro’s only job is to remove syntactic noise: every construct desugars to code the user could have written by hand.

§Crate path dispatch

Apps depend on teksilo (the umbrella crate) and receive teksu! through teksilo::prelude. The emitted code references Teksilo types through ::teksilo::core::.... Internal workspace crates (any crate whose name starts with teksilo-) cannot depend on teksilo (circular), so the macro detects CARGO_PKG_NAME and emits ::teksilo_core::... paths instead. This mirrors the pattern in teksilo-i18n-macros/src/lib.rs.

Macros§

teksu
The teksu! DSL entry point. Parses a block-structured widget-tree description and expands to a sequence of Teksilo V2 builder calls.

Derive Macros§

IntentKind
#[derive(IntentKind)] — generate a typed DTO bridge between an app’s intent enum and the runtime Intent dispatch type.