18 releases

0.5.1 Apr 5, 2024
0.5.0 Mar 28, 2024
0.5.0-alpha.0 Feb 23, 2024
0.4.3 Dec 7, 2023
0.1.1 Feb 28, 2021

#2003 in Procedural macros

Download history 3723/week @ 2024-03-14 4234/week @ 2024-03-21 4954/week @ 2024-03-28 4651/week @ 2024-04-04 3646/week @ 2024-04-11 3488/week @ 2024-04-18 4036/week @ 2024-04-25 4741/week @ 2024-05-02 4612/week @ 2024-05-09 4900/week @ 2024-05-16 4443/week @ 2024-05-23 5026/week @ 2024-05-30 4218/week @ 2024-06-06 4389/week @ 2024-06-13 4871/week @ 2024-06-20 3244/week @ 2024-06-27

17,643 downloads per month
Used in 15 crates (5 directly)

MIT/Apache

230KB
5K SLoC

dioxus-core-macro

Crates.io MIT licensed Build Status Discord chat

Website | Guides | API Docs | Chat

Overview

dioxus-core-macro provides a handful of helpful macros used by the dioxus crate. These include:

  • The rsx! macro that underpins templates and node creation.
  • The component attribute macro denotes a function as a Dioxus component. Currently, this:
    • Transforms function arguments into an auto-derived struct.
    • Ensures that your component name uses PascalCase.
    • Probably more stuff in the future. This macro allows us to have a way of distinguishing functions and components, which can be quite handy.
  • The format_args_f macro which allows f-string formatting with support for expressions.

Contributing

  • Report issues on our issue tracker.
  • Join the discord and ask questions!

License

This project is licensed under the MIT license.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Dioxus by you shall be licensed as MIT without any additional terms or conditions.

Dependencies

~1.4–2MB
~38K SLoC