euv-macros
Zero-Overhead Declarative UI, Style, Lifecycle & Reactive Proc Macros
Workspace Overview · API Docs · Agent Engineering Rules
Overview
Zero-overhead procedural macros for euv, compiling declarative UI (view!), newline-separated styles (style!), reactive bindings, component lifecycles, global/local state, and typed cross-component events directly into retained scene operations with full rust-analyzer Go-to-Definition support and zero macro-emitted use statements.
Responsibilities & Module Layout
view! { ... }— Zero-context declarative scene construction requiring named component props (Component { prop: value }) with IDE Go-to-Definition on built-in tags (euv::view_elements), properties, component structs, and prop fields#[derive(Props)]— ImplementsComponentPropsand span-preserving fluent named-prop setters (with#[prop(custom)]and#[prop(default = expr)])style! { ... }— Compile-time newline-separatedStylebuilder (one rule per line, no;) with IDE Go-to-Definition viaeuv::style_props#[component(retention = Freeze)]— Splitsimpl MyCompintoLifecycle+Componentwith configurable retention (Freeze,Destroy,Alive)#[event]/emit!/on_event!— Typed cross-componentEventBusdeclarations, dispatching, and scope-owned subscriptions#[global_state_store]/global_state!/local_state!— App-wide typed global state and scope-owned reactive local statewatch!/computed!/tokens!/euv_main!— Concise reactive effects, memos, typed design tokens, and 7-platform app entry points
Installation & Usage
Verification
Documentation & Governance
- Update this
README.mdalongside any public API, macro, component, CLI, or module-boundary change per../AGENTS.md. - Project standards and workflows live in
../.agents/skills/euv/SKILL.md.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For inquiries, please contact the author at root@devhub.vip.