#component #ambient #proc-macro #helper #convert #definition #allowing

macro ambient_element_component

Helper procedural macro for the Ambient runtime that converts a function to an ElementComponent, allowing for more concise definitions of components

16 releases

0.3.1 Oct 25, 2023
0.3.1-rc.1 Oct 24, 2023
0.3.0-rc.2 Sep 29, 2023
0.2.1 May 6, 2023

#527 in Procedural macros

Download history 22/week @ 2024-01-05 34/week @ 2024-01-12 22/week @ 2024-01-19 18/week @ 2024-01-26 23/week @ 2024-02-02 34/week @ 2024-02-09 77/week @ 2024-02-16 55/week @ 2024-02-23 56/week @ 2024-03-01 73/week @ 2024-03-08 65/week @ 2024-03-15 98/week @ 2024-03-22 115/week @ 2024-03-29 47/week @ 2024-04-05 60/week @ 2024-04-12 46/week @ 2024-04-19

285 downloads per month
Used in 20 crates (2 directly)

MIT/Apache

20KB
431 lines

ambient_element_component

Helper procedural macro for the Ambient runtime that converts a function to an ElementComponent, allowing for more concise definitions of components.


lib.rs:

Provides a macro for converting a function to an ElementComponent, allowing for more concise definitions of components.

Dependencies

~2MB
~43K SLoC