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

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

#2154 in Procedural macros

Download history 50/week @ 2024-07-20 50/week @ 2024-07-27 44/week @ 2024-08-03 33/week @ 2024-08-10 34/week @ 2024-08-17 39/week @ 2024-08-24 61/week @ 2024-08-31 24/week @ 2024-09-07 18/week @ 2024-09-14 88/week @ 2024-09-21 67/week @ 2024-09-28 1/week @ 2024-10-05 35/week @ 2024-10-12 18/week @ 2024-10-19 12/week @ 2024-10-26 23/week @ 2024-11-02

88 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
~45K SLoC