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

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

#2099 in Procedural macros

Download history 48/week @ 2024-06-04 40/week @ 2024-06-11 57/week @ 2024-06-18 40/week @ 2024-06-25 33/week @ 2024-07-09 52/week @ 2024-07-16 56/week @ 2024-07-23 49/week @ 2024-07-30 35/week @ 2024-08-06 44/week @ 2024-08-13 34/week @ 2024-08-20 57/week @ 2024-08-27 30/week @ 2024-09-03 23/week @ 2024-09-10 19/week @ 2024-09-17

143 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
~44K SLoC